WordPress.org

Forums

[resolved] Any way of keeping blog post Titles, but removing from pages? (7 posts)

  1. Hulyman
    Member
    Posted 2 years ago #

    Hi - had help replacing titles back on blog posts earlier from alchymyth However now text is appearing where i don't want it.
    Example here where I don't want it http://julianward.co.uk/portraits-2/ Text that reads portraits
    but I'd like to keep titles here http://julianward.co.uk/blog/
    Thanks...

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Yes, you can target the CSS to specific pages using the unique page id -- so for that page you would use this:

    body.page-id-2947 h1.entry-title {
      display: none;
    }
  3. Hulyman
    Member
    Posted 2 years ago #

    Thanks Wpyogi - would I put this in the style.css editor?

  4. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Yep, and the other thing is that if you want to remove those from all pages (not posts), you can use

    body.page

    rather than the specific page id

  5. Hulyman
    Member
    Posted 2 years ago #

    Yes I'd want it removed from all pages. Tried both those suggested codes and still there. I put the below at the bottom of style.css page, is that right? Thanks

    body.page h1.entry-title {
    display: none;

  6. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Looks like you have some errors in that stylesheet -- which often cause the rest of the CSS to be ignored:

    http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fjulianward.co.uk%2Fportraits-2%2F&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en

    See the section on that stylesheet first.

  7. Hulyman
    Member
    Posted 2 years ago #

    Success! Thanks so much WPyogi, that's great. I'll mark as resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic