Remove Feature Images for Child Pages

  • ResonoteMusic

    #6742

    Hello,

    I’m new here, my apologies if this question has been answered already, I was unable to find it with the search.

    I’m trying to remove child page featured images that are displayed when viewing from a parent page, but only on certain pages and not others.

    For example I want to keep these featured child page images Example

    But I want to get rid of these featured child page images Example2

    Thanks so much for your help, really enjoy the theme.

    Prasanna SP

    #35433

    Add this to Custom CSS.

    .page-id-ID .child-page img {
    display: none;
    }

    where #page-id-ID is the ID of the page in which you want to hide images of child pages.

    Prasanna SP

    #35434

    Okay, here is the exact code to hide child page image under Resonate Music page. Just add this to Custom CSS.

    .page-id-16 .child-page img {
    display: none;
    }

    ResonoteMusic

    #35435

    Thanks Prasanna,

    how do I tell what the page ID number is so I can do this for other pages as well?

    -Isaac

    Prasanna SP

    #35436

    View page source. You can see something like this,

    <body class="page page-id-16 type-page .. ..">

    So, 16 is the ID of that page.

    ResonoteMusic

    #35437

    Prasanna,

    Thanks so much, works perfectly

    -Isaac

    Prasanna SP

    #35438

    Marking thread as resolved. You can do this yourself as well.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.