Support » Theme: Hueman » Custom site-title image for categories

  • Resolved kreznik

    (@kreznik)


    Awesome theme!

    I’m trying to set up a blog with a different header image for each category.

    Is there an easy way to do this in the Hueman theme?

    I’ve tried several plugins that will add a header to the category post, but it doesn’t replace the existing site-title.

    Thanks in advance for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi kreznik. You can do this with css although, if you’re constantly adding categories, it might be a bit of an maintenance challenge. Here’s an example I worked up Pastebin a while back. The last bit of code shows setting the image by page id. You can also do this by category name since the category slug is carried as a class in the body tag. So, if your category was “children’s books”, the slug would be “childrens-books” and the class would be “category-childrens-books”.

    Thread Starter kreznik

    (@kreznik)

    Thanks bdbrown! That was frustrating me so much yesterday. I just wasn’t looking at it from the right angle. Got it working now 🙂

    Maintenance shouldn’t be an issue. My categories shouldn’t change often.

    You’re welcome. Glad I could help. If you don’t need any further assistance with this topic please mark it as Resolved. Thanks.

    Thread Starter kreznik

    (@kreznik)

    This works great! Thanks for your help.

    Only problem is that some blog posts need to be marked with multiple categories.

    I not only have a custom header for each category, but a custom color (for the post headline, links, etc).

    I have no problem making one category dominant, so on the single post, it just shows one header and uses the appropriate color.

    The problem is with the archive of the less dominant category, the color of the post headline is still the dominant color.

    Any suggestions?

    Since this topic is over a month old, and is already marked as resolved, please create a new topic for your current question, and reference this topic if needed. Also, a link to your site would be helpful. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom site-title image for categories’ is closed to new replies.