我正在使用SimpleCorp主题,我需要将这四个图文块的数量增加到六个。我什至尝试将 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 面板时,希望会出现另外两组设置,它只是向我显示了一个空白页面。我想,主页块的数量与某些东西有关,这需要其中的四个。但是什么?...
如果有人能建议我一个解决方案,我将不胜感激!