removing site title from posts ONLY (4 posts)

  1. robinmandel
    Posted 3 years ago #


    I am rebuilding my art portfolio site using WPFolio Two and I'm really enjoying the capabilities of the theme. I have been working with a child theme and customizing various aspects of the CSS, which has been fun to figure out how to do.

    One thing I am stumped on, and cannot find in the forums, is this: how might I go about removing the site title in the header, and shrink the header vertically so it displays just the navigation menu, but on portfolio posts ONLY? I'd like to leave the site title visible in news posts, category pages, and all other pages, but remove it from the posts that contain individual works. I imagine this would entail altering a template file but I am having trouble locating the right one.

    I am currently running wordpress on a localhost using MAMP, so I cannot yet post a link.


  2. paulwpxp
    Font hero
    Posted 3 years ago #

    WPFolio this one ?

    This theme, like most WP themes, uses body_class() in its <body> tag. So you could do that ( site title appearance based on conditions ) in style.css of your child theme. No need to edit any template.


  3. robinmandel
    Posted 3 years ago #

    Thanks for your response. I will dig into this - I have not yet worked with conditional tags but thank you for the tip.

    I'm actually using the beta of WPfolio Two.

  4. paulwpxp
    Font hero
    Posted 3 years ago #

    Those are different theme, but both use body_class() in <body> tag.

Topic Closed

This topic has been closed to new replies.

About this Topic