WordPress.org

Ready to get started?Download WordPress

Forums

get_sidebar pain (2 posts)

  1. Nicky Moore
    Member
    Posted 3 years ago #

    Hi,

    The <?php get_sidebar(1); ?> code in the template I'm using was put at the end of the header.php file.

    I'm trying to create a new page template that doesn't call the sidebar (to give me more room on the page). I've spent hours trying to find the right piece of code to insert into my existing page.php code (which I want to cut and paste into the new template) that counters the default call.

    Can anyone help?! I'm sure this is just my inexperience showing but I literally can't find anything online that can help!

    My eternal gratitude to anyone who can help me solve this one.

    Nicky :)

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    <?php if( !is_page('Page Name') ) get_sidebar();?>

Topic Closed

This topic has been closed to new replies.

About this Topic