Image for Category Archive page

Hello, I’ve installed a plugin that allows me to upload an image to be displayed at the top of category pages, but the images aren’t showing live. I need it to be a unique image per category, not a hard-coded banner image. To be clear, I’m not referring to the featured images for the blog posts, but to a stand-alone image at the top of the category archive page.

The plugin is http://zahlan.net/blog/2012/06/categories-images/

Instructions say to add this code in an image tag on the category template page.

<?php if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url(); ?>

I’m using a child theme. What file would I add this code to?

The website is: https://www.crosscountrysupply.com/

The category pages aren’t live yet. I can give you admin access if necessary. Thanks!

Hello @mizschmitty,

Thanks for writing to us.

I checked your given site URL it seems that they have added the banner in the Header, in case you want to display the category image as a Header banner, you need to override the header template depending upon your theme stack. For example Integrity stack file path. x\framework\legacy\cranium\headers\views\integrity\wp-header.php

You need to override the template and then you need to add the code of the plugin. Please note if you have no idea about PHP coding, I would suggest you consult a developer who can assist you with your concern or you can subscribe to One where the customization questions are answered.

Please note that we don’t provide custom development support or any child theme support. It is out of the support scope.

Thanks for understanding

I was hoping for an easier answer, but since I can only do simple .PHP I’ll have to look for another solution.

Thanks.

Hello @mizschmitty,

Regretfully there are no other options available at the moment in the X theme.

Alternatively, I would suggest you upgrade the X theme to the Pro theme where you can create a custom header for the category archive page where you need to set category images as a header banner.



Hope it helps
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.