WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] New theme, header ignore pages? (3 posts)

  1. ajtaylor20
    Member
    Posted 7 years ago #

    How do I ignore certain pages in this header.php file?

    http://bombpost.com/header.txt (Full code of header.php)

    I want to ignore page 75 lets say...

    Andrew

  2. Kafkaesqui

    Posted 7 years ago #

    Find this line:

    elseif ($page_name == "about_short") {/*ignore*/}

    Add another line right after it, basically a duplicate, specifying the Page you want to 'ignore':

    elseif ($page_name == "about_short") {/*ignore*/}
    elseif ($page_name == "i_hate_peas") {/*ignore*/}

    Make sure to use the Page or 'post' slug here, not the ID or title. Just add a new line for each Page you want to pass over.

  3. ajtaylor20
    Member
    Posted 7 years ago #

    Perfect Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Topic