The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Programming Fundamentals" Dec 02 - 2:00 PM Eastern

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

  • # July 12, 2013 at 11:43 am

    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; }
    .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!!!!!!


    # July 12, 2013 at 12:06 pm

    I would use one of the [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:
    But I’m using Multisite, so I’ll have to see if it works if the logo needs to be removed from every page.


    # 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed