-
AuthorPosts
-
March 20th, 2021 at 04:47 #115649
Drobb
Power UserHi All — Just starting out with Mantra and I think it’s gonna stick! Thanks for creating this!
This is something that works in another theme, but not in this one. So perhaps what I’m doing wrong here might transfer over to other things I’m working on.
I want to hide the page-title header on a certain page. This is what works in another theme but not in Mantra:
.page-id-4 .post-headline {
display: none;
}I also tried adding !important but that didn’t work. Any help would be most appreciated!
-
This topic was modified 4 years ago by
Drobb. Reason: clarifying what I mean by "header"
March 20th, 2021 at 19:33 #115655Drobb
Power UserOk feeling sheepish. I get it now, that the page id will change from theme to theme, as will many of the terms; makes sense. This works:
.page-id-61 .entry-title { display: none; }March 21st, 2021 at 23:01 #115709Zed
Cryout Creations mastermindHi,
The page id only varies between (static) pages – if the themes use the correct WordPress built-in functionality, the the id-specific class names should be the same.
The second identifier (which targets the specific title element) will most likely differ between themes as that’s definitely layout and theme specific.If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic. -
This topic was modified 4 years ago by
-
AuthorPosts
The topic ‘Hide the page title on certain pages?’ is closed to new replies.