• Resolved tentpeg

    (@tentpeg)


    Want to remove the header (with image) from some pages/post. Did a search and found some CSS code with page slug (below), but not working. Ideas? Thanks!

    CSS tried:
    .page-id-209 .page-header {
    display: none;
    }

Viewing 8 replies - 1 through 8 (of 8 total)
  • hannah

    (@hannahritner)

    Hi,
    Try using this:

    .page-id-209 .headerclass {
        display: none;
    }

    If that doesn’t work please post a link.

    Hannah

    Thread Starter tentpeg

    (@tentpeg)

    Thanks, Hannah! Worked … too well ;-)) Realized I only wanted the logo removed, not menu, so altered your code as below and it worked.

    .page-id-209 div#logo {
    display:none;
    }

    hannah

    (@hannahritner)

    Glad you got it figured out:)

    Hannah

    Thread Starter tentpeg

    (@tentpeg)

    I thought so too ?? except I can’t get it to work on posts, only pages. Obviously I need to change something in the code?

    hannah

    (@hannahritner)

    You would just need to change the page id. Do you want it to apply to all posts? Can you post a link?

    Hannah

    Thread Starter tentpeg

    (@tentpeg)

    You know, you guys are amazing. INCREDIBLE support. Went through a boat-load of themes, paid and free, before I settled in with Virtue. Loving it.

    Anyway, I thought the page id would work for posts, too, but it isn’t for some reason.

    Here’s the PAGE with the shortcode working (logo gone).
    .page-id-209 div#logo {
    display:none;
    }

    Here’s the POST with it NOT working. (logo showing)
    .page-id-207 div#logo {
    display:none;
    }

    I do have a knack for finding glitches ;-))

    hannah

    (@hannahritner)

    Glad you’re happy! Very much appreciated:)
    Your css was close! This should work:

    .postid-207 div#logo {
        display: none;
    }

    Hannah

    Thread Starter tentpeg

    (@tentpeg)

    That did it! Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove Header from individual page/post’ is closed to new replies.