Viewing 8 replies - 1 through 8 (of 8 total)
  • Try editing page.php in your theme and replacing <?php get_sidebar();?> with <?php if( !is_page('181') ) get_sidebar();?>.

    Thread Starter Ronnie

    (@ronniesblog)

    thanks esmi
    this is all i have in page.php reference sidebar, what do you reckon?

    </div>
    <div class=”sidebar1″>
    <?php include (TEMPLATEPATH . ‘/sidebar1.php’); ?>
    </div>
    <div class=”sidebar2″>
    <?php include (TEMPLATEPATH . ‘/sidebar2.php’); ?>
    </div>

    </div>

    Thread Starter Ronnie

    (@ronniesblog)

    can anyone help please?

    Sorry for the delay. Try using:

    </div>
    <?php if( !is_page('181') ) :?>
    <div class="sidebar1">
    <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
    </div>
    <div class="sidebar2">
    <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
    </div>
    </php endif;?>
    </div>
    Thread Starter Ronnie

    (@ronniesblog)

    thanks esmi

    it made the page dissapear

    I think we’d need a bit more info regarding your theme and settings in order to be able to help you.
    With only the piece of code you mentioned earlier, you would not be able to display the contact form, unless you include it in one of the sidebars.

    If that’s the case, include the conditional tag esmi mentioned only for the sidebar that does not contain your contact form.

    Hope that helps.

    Thread Starter Ronnie

    (@ronniesblog)

    excuse please my lack of knowing

    i’m using this template:
    https://freewpthemes.name/relaxation-free-wordpress-theme/

    sidebar1.php has the following code only:
    <div class=”sidebar1″>
    <?php if (!art_sidebar(1)): ?>

    <?php endif ?>
    </div>

    sidebar2.php has a whole lot more code

    the code snippet above comes from page.php

    is there anything else i can mention that may help?

    Thread Starter Ronnie

    (@ronniesblog)

    can anyone help me please?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘how to remove sidebars from contact page?’ is closed to new replies.