我使用的是SimpleCorp主题和我需要将those四个图片和文本块的数量增加到六个。我甚至尝试将index.php重定向到我的自定义.php页面模板,但它根本不起作用...添加到主页的旋转木马
接下来我尝试的是,在/ wp-content/themes/simplecorp/admin /options/homepage.php我发现下面(它井4块,但与递增的数字)这个代码
$options[] = array("name" => "Content Box 1 Title",
"id" => $shortname."_homecontent1title",
"std" => "Awesome Features",
"type" => "text");
$options[] = array("name" => "Content Box 1 Text",
"id" => $shortname."_homecontent1",
"std" => "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore.",
"type" => "textarea");
$options[] = array("name" => "Content Box 1 Image",
"desc" => "Click to 'Upload Image' button and upload Content Box 1 image.",
"id" => $shortname."_homecontent1img",
"std" => "$blogpath/library/images/sampleimages/featured-img-01.png",
"type" => "upload");
$options[] = array("name" => "Content Box 1 URL",
"id" => $shortname."_homecontent1url",
"std" => "#",
"class" => "sectionlast",
"type" => "text");
而通过的复制粘贴和递增的数字高达6,其所需的计数,我创建两个(第5和第6)。但是当我试图重新加载我的wp-admin面板时,希望还会出现另外两组设置,它只是向我展示了一个空白页面。我想,主页块的数量与某些东西相关,这需要其中四个。但是什么?...
我非常感谢,如果有人可以建议我一个解决方案!
我刚才试过了,什么也没有发生。同样在wp admin面板的主题选项部分,每个人只有4组设置可供编辑。我有一种感觉,它也需要增加到六个。无法找到主题的选项核心代码,并改变它有助于这件事? – Selrond