• I am trying to remove the <h1> title from the homepage on the site I’m working on. I had removed it from the post-meta-page.php and that worked to remove it from all of the pages, however it also removes it from the individual post pages, which I don’t want it to do. I tried to find and remove the <h1> stuff from the single.php but it doesn’t seem to exist there. I’m guessing I would have to edit the php code on the single.php to accomplish this, but I really don’t know much about php. Can somebody please help?

    https://dev.battaglinochiropractic.com/

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

    (@i9mickey)

    Update…

    I hope this is less confusing. I have removed the h1 tag from post-meta-page.php as this seems to be the only way to remove it on all pages. I’m trying to keep it on the individual Blog entries and don’t know how to do it. Thanks.

    The easier (and common) way to do what you want is to hide it on the home page only using page-specific CSS. The body tag generates page-specific classes you can use as CSS selectors:

    body.home h1 (whatever the class or ID - can't see it on your site now) {
       display: none;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Responsive Page Titles’ is closed to new replies.