I'm using a wordpress theme which uses custom post types for portfolio items and "sets" to categorize them. When I hover over a "set" to edit, it reveals this at the bottom of the browser: taxonomy=portfoliosets, &tag-id=37 &post_type=portfolios.
I am trying to make it so the header image will change depending on the category or tag. We different sets such as "videos" and "magazines" etc.
So far I've tried adding the following into header.php:
<?php is_single( 'videos' ) ?>
<style type="text/css">
.page_header {
background: url('mysite/image.jpg') no-repeat scroll center center / cover #F9F9F9 ;
</style>
Which just seems to change the image for everything and:
<?php if ( has_tag('videos') && (in_category('portfolios')) )
{ echo ' <style type="text/css">
.page_header {
background: url('mysite/image.jpg') no-repeat scroll center center / cover #F9F9F9 ;
</style>' ; } else { echo '' ; } ; ?>
Which just seems to give errors - any help much appreciated - thanks