Grow your CSS skills. Land your dream job.

How to remove logo from all blog posts but not pages? In WP

  • # July 12, 2013 at 11:43 am

    Hi,
    I’ve been trying to remove the logo from WordPress blog posts, but have it still show up on the regular pages. I tried
    #logo .post {
    display: none; }
    and
    .post #logo {
    display: none; }

    but neither worked. I can’t do it with the page or post id numbers because my client is making new blog posts every day. I’m stumped. What do I do?

    Thank you!!!!!!

    Clare

    # July 12, 2013 at 12:06 pm

    I would use one of the [conditional tags](http://codex.wordpress.org/Conditional_Tags) to add or remove the HTML node for the logo.

    So something like (code not tested):

    if (!is_home() || !is_single()){
    echo ‘‘;
    }

    # July 12, 2013 at 1:06 pm

    Thanks. This may be what I need. For now I’m hoping the client will go for just the main /blog page. Also there is a plugin that may help: http://wordpress.org/plugins/wp-conditional-shortcodes/
    But I’m using Multisite, so I’ll have to see if it works if the logo needs to be removed from every page.

    Thanks!

    # July 12, 2013 at 1:09 pm

    Update: Client is happy with removing the logo from just the /blog page. Thanks!!

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".