featured image with category pages
-
Hi there
as far as I understood it’s not possible to add a featured image to a category page and a post that is different from the main header. The pages and posts in question are:
http://sansche-yoga.com/category/videos/
and http://sansche-yoga.com/category/yoga-snacks/
http://sansche-yoga.com/2015/03/19/dogsnack/My question is whether it is possible, however, to have NO header image on top of the category page and post or is ot by default that once I choose a main header image it shows up on all category pages and posts. With the featured images I select in my posts plus the main header on top it looks a bit like an overload of images, if you know what I mean….
Thanks already for you help!
Sandra :)The blog I need help with is: (visible only to logged in users)
-
Hi sanscheyoga !
I didn’t try your WordPress Theme, check first if there is any option in the Theme to do that.
You can also ask your question to the Support of your Theme here : https://premium-themes.forums.wordpress.com/forum/adventure
If you want to have a specific header image for a specific page.
You can add some a php code in the header.php. But you need to know the basic of PHPFor example :
<?php if (in_category('33')) { ?> <img src="..."> <?php }else { ?> <img src="..."> <?php } ?> -
Or another example :
<?php if (is_category('yoga')) : ?> <img src="..."> <?php elseif (is_category('beer')) : ?> <img src="..."> <?php else : ?> <p> Nothing </p> <?php endif; ?> -
Hey aideur! Thanks for your support!!
I’m not really familiar with php code but will try as well as referring to the “adventure”-theme support! Thanks for the advice :)
- The topic ‘featured image with category pages’ is closed to new replies.