This code snippet enables you to use a different logo for posts in each category as well as the category archive page, no plugin required. If you prefer using a plugin to upload your unique logos, try the links at the end of this post.
Demo Video #
Displays a unique logo for posts in each category using the image attachment id from the WordPress Media Library for each logo.
Tested using the Genesis Sample child theme by StudioPress however should work without modification in any Genesis child theme which supports custom logos or any WordPress child themes functions file.
Installation Steps #
There’s 2 steps :
Step 1 – Copy ( without the opening PHP tag ) & paste the code to the end of your child themes functions.php file.
Was This Tutorial Helpful?