• Resolved lvictor

    (@lvictor)


    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 } ?>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Have code snippet appear on all pages except for main site and 1 page on 1 site’ is closed to new replies.