WordPress.org

Forums

[resolved] Have code snippet appear on all pages except for main site and 1 page on 1 site (3 posts)

  1. lvictor
    Member
    Posted 1 year ago #

    I've been wrestling with getting a header field to be excluded on one page -- it's already excluded from the main site (blog_id='1') I just need it to be included on all pages of one network site EXCEPT for a page titled "2014-ray-allen-golf-classic". I've tried this and it is not working:

    =============

    <?php

    global $blog_id;

    if ($blog_id !== '1' and $page_title !== '2014-ray-allen-golf-classic') {

    ?>

    <h1 class="entry-title"><?php the_title(); ?></h1>
    }
    <?php } ?>

  2. lvictor
    Member
    Posted 1 year ago #

  3. lvictor
    Member
    Posted 1 year ago #

    Resolved issue myself with page-id-specific css code for "hentry"

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags