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全寬頁,但並未奏效。
如果有人已經取得了成功,任何幫助表示讚賞。