Hi, sorry if I didn't manage to find the answer to this via search.
I was wondering how to add a top image to a category page (full width, similar to home page but a static, not a slider). Or to all category pages if that's easier.
Or to add blog to a regular page with featured image, whichever works easier.
Thank you!
How to add a top feature image to a particular category.
5 posts from 2 voices-
Posted 2 years ago #
-
PS If I didn't express myself properly, by full width I meant full width image with the same dimensions as a slider or a featured image that can be added to a full width page right under the categories nav.
Posted 2 years ago # -
Hey,
open up header.php and replace:
<!-- ###################################################################### --> <div id="contentwrap"> <!-- ###################################################################### -->with:
<?php if (is_category(9,8,6)){ echo '<img src="my.image.jpg" alt="" title="" />'; } ?> <!-- ###################################################################### --> <div id="contentwrap"> <!-- ###################################################################### -->Replace 9,8,6 with your category ids and replace "my.image.jpg" with an url to your image.
Posted 2 years ago # -
Hi,
Thank you, its a bit clunky for some reason as it works predictably only on one category (others range from changing bg colour to not showing image at all) but as I only needed it for one category and to know the principle, its all good for me :)Posted 2 years ago # -
Glad that I could help you :)
Posted 2 years ago #
Reply
You must log in to post.














