Remove page title from page body

Support Area Forums Bottega Remove page title from page body

Viewing 7 posts - 1 through 7 (of 7 total)
URL to the page in question: http://cb1art.co.uk/documentary/
  • Author
    Posts
  • #33135

    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

    #33138
    Bill Robbins
    Moderator

    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.

    1. Go to your theme options page and choose the Advanced tab.
    2. Scroll down to the Custom CSS box and add this:
      
      .page-id-949 h1.post-title {
      	display: none;
      }
      
    3. Update your settings.

    Let me know if you have any trouble or questions,
    Bill

    #33155

    Hi Bill,

    this is brilliant thank you!

    Krisztian

    #33158

    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

    #33159
    Bill Robbins
    Moderator

    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.

    #33160

    perfect!

    thank you.

    #33164
    Bill Robbins
    Moderator

    You’re welcome 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Remove page title from page body’ is closed to new replies.