我必須在 Wordpress 中創建一個全角頁面模板。但我不明白為什么,即使我只叫我的“sidebar-bas”,我也會顯示“sidebar-droite”:/
我希望有人能幫助我
<?php
/*
Template Name: Full Width
*/
?>
<?php get_header();
if(have_posts()): while(have_posts()): the_post();?>
<section id="pages" class="haut avecAside">
<section id="pages" class="haut">
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
</section>
<?php endwhile;
endif;
get_sidebar( 'sidebar-bas' );
get_footer();?>
uj5u.com熱心網友回復:
確認您的sidebar-bas模板檔案不包含get_sidebar( 'sidebar-droite' )在其中。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/338764.html
標籤:php WordPress的 模板 wordpress 主题
上一篇:聯系表格7自動選項卡到下一個欄位
