WordPress.org

Ready to get started?Download WordPress

Forums

removing site title from posts ONLY (4 posts)

  1. robinmandel
    Member
    Posted 1 year ago #

    Hello!

    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.

    Thanks!

  2. paulwpxp
    Font hero
    Posted 1 year ago #

    WPFolio this one ?
    http://wordpress.org/extend/themes/wpfolio

    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.

    body_class()
    http://codex.wordpress.org/Function_Reference/body_class

  3. robinmandel
    Member
    Posted 1 year 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 1 year 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

Tags