In the comments section of Full-width hero image on category archive pages in Genesis, the user commented,
Hi Sridhar! Thank you SO MUCH for creating this tutorial less than 24 hours after I asked about it! You are incredible. So I have a new wrinkle for you, what would the code look like if I wanted it to work on both category AND tag archives? I tried some things myself but can’t get it to work. Thanks again!Below is a variation of the earlier linked tutorial which will work not only on category archives (Ex.: example.com/category/category-1) but also on tag archives (Ex.: example.com/tag/headlines) and any other custom taxonomy term archive pages (Ex.: example.com/portfolio_category/featured).
Step 1Install and activate WP Term Images plugin.
Step 2Edit category / tag / taxonomy archive pages and set your desired images.
Step 3Add the following in child theme's functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.