0
我一直在寻找所有的地方,我无法找到一个解决方案。我使用创世纪儿童主题“新闻”,对于主页我不需要主要的侧边栏,因为我将有一个图像滑块。我发现如下代码:创世纪儿童主题 - 删除主页上的主要侧边栏只有
/** Force full width layout */
add_filter('genesis_pre_get_option_site_layout', 'child_do_layout');
function child_do_layout($opt) {
$opt = 'full-width-content'; // You can change this to any Genesis layout below
return $opt;
}
,并把它添加到功能页面,因为我想基本上是强制的home.php全宽页,但并未奏效。
如果有人已经取得了成功,任何帮助表示赞赏。