Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #11457


    I know how to add different header images for pages. Please advise if the same can be done to all portfolio or post items including their aggregation pages? (i.e. paged with multiple portfolio items). Basically I need everything portfolio to have a different header.

    And would like to know if post/portfolio categories could also receive separate header images.

    Thank you,



    Hi Ellina37,

    I’m guessing a little bit on what you want, but I believe so yes. If you used page or page type specific css, you could target those pages to have different styles.




    Hi Devin,

    Sorry if I was cryptic. How do I change header for ALL of portfolio or for everything in one category.

    To specify header for a page I use a page ID ascribed by WordPress when the page is created.

    for example:

    .page-id-1469 .bg-logo a {

    background: url(“../images/name.png”) no-repeat scroll left top transparent;


    But how do I do it for a category or a portfolio please? What CSS code do I use?



    PS I want to target ALL posts in a portfolio at once

    Or all posts under a certain category at once

    Thank you,




    Please open up some pages/posts/archive pages you want to change and check the source code. Instead of “.page-id-1469″ each portfolio, post, category, etc. will have other body classes. Use them for your custom logo code.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Different header image for portfolio or post items’ is closed to new replies.