Home > Software design >  how to get full width in my wordpress page template?
how to get full width in my wordpress page template?

Time:10-28

I have to create a full-width page template in Wordpress. But I don't understand why, even if I only call my 'sidebar-bas' I also have the 'sidebar-droite' displayed :/

i hope someone could help me

<?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();?>
<iframe name="sif1" sandbox="allow-forms allow-modals allow-scripts" frameborder="0"></iframe>

CodePudding user response:

Verify that your sidebar-bas template file does not include get_sidebar( 'sidebar-droite' ) in it.

  • Related