Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1326739
    Noellemena
    Participant

    Hey! Have not asked a question for while! 🙂
    Ok, so on my client’s site http://danielledonaldson.com/ I want to hide all of the footer widgets (leaving the footer itself though) on all pages except the Blog and Blog Posts. (archives too etc)

    I have CSS to remove per page, post ID but will drive me crazy. I want to go the opposite and just ONLY show on the Blog and Blog posts.

    This would be perfect 🙂
    Thanks!
    Noelle

    #1326824
    Lely
    Moderator

    Hello Noelle,

    Please use the following CSS:

    .x-colophon.top {
        display:none; /*Hide footer widget for the entire site*/
    }
    .blog .x-colophon.top,
    .single-post .x-colophon.top {
        display:none; /* Override above CSS and display this footer widgets on blog index page and single post page*/
    }

    Hope this helps.

    #1328183
    Noellemena
    Participant

    Thank you so much, it works for hiding site-wide, but I cannot get it to show on blog posts.
    http://danielledonaldson.com/e-excellent-starts-exciting-book-projects/

    Thoughts??
    THANKS! Noelle

    #1328332
    Paul R
    Moderator

    Hi Noelle,

    Kindly replace the code with this.

    
    .x-colophon.top {
        display:none; /*Hide footer widget for the entire site*/
    }
    .blog .x-colophon.top,
    .single-post .x-colophon.top {
        display:block; /* Override above CSS and display this footer widgets on blog index page and single post page*/
    }
    

    Hope that helps.

    #1328340
    Rupok
    Member

    Hi Noelle,

    Thanks for writing back. There was a small glitch on the suggested code as the second block should say display: block;. Kindly update the code to following :

    .x-colophon.top {
        display:none; /*Hide footer widget for the entire site*/
    }
    .blog .x-colophon.top,
    .single-post .x-colophon.top {
        display:block; /* Override above CSS and display this footer widgets on blog index page and single post page*/
    }

    Cheers!

    #1330179
    Noellemena
    Participant

    Excellent, Thank you, this did it 🙂

    #1330524
    Christopher
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-1326739 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>