Is it possible to have different images as background of the title bar for post listings of different categories?
I tried to add images with the plugin Categories Images but these don't show up in the category listing.
https://wordpress.org/plugins/categories-images/There is a custom code to add to the template but I'm not sure where to add it.
Or is there another way to do this?
Comments
I don't think that this plugin will know how layout of our theme is made;-)
If you want dif
ferent images for different categories then you will have to use custom CSS.
Please show me link to your example category and I will give you instructions what to do.
With kind regards.
Use <?php if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url(); ?>
to get the url and put it in any img tag or simply use
<?php if (function_exists('z_taxonomy_image')) z_taxonomy_image(); ?>
in (category or taxonomy) template.
I'm not sure where to add this code.
Use this custom CSS: As you can see you just change slug of your category. You can see what you should exactly use by viewing source of your page while viewing category and look for
<body>
element.<body id="top" class="archive category category-trends-tips ...
With kind regards.
With kind regards.