Remove page title from page body
URL to the page in question:
http://cb1art.co.uk/documentary/
-
Hello Bill,
Me again 🙂
Is there a way to remove a page title from only one page?
http://cb1art.co.uk/documentary/
Many thanks,
Krisztian
Welcome back 🙂
It is possible to do that. WordPress adds a unique bit of HTML to the body tag of every page. We can use that as a way to style items on that page differently from the others. The documentary page has an id of 949 so here’s how to use that to hide the title on that page only.
- Go to your theme options page and choose the Advanced tab.
- Scroll down to the Custom CSS box and add this:
.page-id-949 h1.post-title {
display: none;
}
- Update your settings.
Let me know if you have any trouble or questions,
Bill
Hi Bill,
this is brilliant thank you!
Krisztian
and here again 🙂
Maybe I had too much tea today …
Bill, is there a way to remove the white strip in between the video and the footer on this page:
http://cb1art.co.uk/documentary/
I think it is a default for all pages, however not that I know that we have unique body tag, I thought we could do something. Can we?
Your help is greatly appreciated.
Krisztian
To do that, use this snippet instead of the one above:
.page-id-949 #page-full {
display: none;
}
That’ll hide the entire area where the title and content would normally be.
- The topic ‘Remove page title from page body’ is closed to new replies.