Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46348
    Clare12345
    Participant

    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

    #142501
    Alen
    Participant

    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 ‘‘;
    }

    #142531
    Clare12345
    Participant

    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!

    #142526
    Clare12345
    Participant

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.