Remove titles of parent page but keep child titles

  • Unknown's avatar

    Hi guys,
    I was just wondering if anyone could help me:
    I am using the Sela Theme and would like to remove the titles from specific pages, but they are grid pages (parent) and I don’t want to remove the titles from the child pages below.
    The CSS help I’ve found has been great, but they tend to remove all titles on a page. Is there a way to specify to remove the title of the parent page, but keep the title of the child pages?
    Many thanks!!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there, I see this in your custom CSS

    .page-id-9 .child-pages .entry-title {
        display: none;
    }

    which is one of the ways to do this. The other way, which would mean less writing of CSS, would be the following which uses the .page-parent CSS body class, and the .child-page article class for a more universal solution.

    .page-parent .entry-title {
        display: none;
    }
    .child-page .entry-title {
        display: block;
    }
  • The topic ‘Remove titles of parent page but keep child titles’ is closed to new replies.