• palatinate11

    (@palatinate11)


    I’ve set up a test site where I am using WordPress as a CMS. I followed instructions to set the homepage as a static page and (in settings/reading) and I set “News” as the blog page.

    My problem is that the news page is missing the h1 title “News” and I can’t figure out why. I did alter the header.php code <h1><?php wp_title(''); ?></h1> to stop the title “pages” appearing above my sidebar nav. Perhaps this has something to do with it. Anyway, it’s unique to my News (blog) page and everything else is working fine.

    Ipswich375 test site

    I’d be grateful for suggestions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter palatinate11

    (@palatinate11)

    Does anyone else have this problem? Any suggestions for fixing it?

    Thread Starter palatinate11

    (@palatinate11)

    I fixed it for my site. My blog page is a sub page of the about page and that was causing the problem. There is no is_subpage() condition so I went about it the other way around – every page on my site is a page, the news page is the only blog page. Here’s my code:

    <h1><?php
    if (is_page()) {
      wp_title('');
    } else {
      echo "News";
    }
    ?></h1>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CMS – blog page h1 doesn’t show’ is closed to new replies.