Hide the page title on certain pages?

  • Author
    Posts
  • #115649
    Drobb
    Power User

    Hi 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 1 year ago by Drobb. Reason: clarifying what I mean by "header"
    #115655
    Drobb
    Power User

    Ok 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;
    }
    #115709
    Zed
    Cryout Creations mastermind

    Hi,

    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.
Viewing 3 posts - 1 through 3 (of 3 total)

You need to log in to reply to this topic.