You will notice that this site utilises category icons.
Dodecahedrons for ‘Branding and ID’, a coffee cup for ‘Random’, a lightbulb for the ‘coding Bits’ category and so on.
This IS possible to do by using a WordPress plugin but like all plugins, they are made for general purpose and include features that you do not necessarily need. All plugins are usually quite extensive and harder to modify. Why use 1000 lines of code in various php files when a ridiculously small and simple bit of code will suffice.
Example: The plugin ‘category-icons’ is 724KB with 60 files in 13 folders
My method is 2 very simple files and 8KB using ‘incat’ and ‘iscat’ and does precisely what I need, and no more
MIND BOGGLINGLY SIMPLE!
You are creating 2 files : incat.php and iscat.php – Obviously remember to include.
Both are the same apart from one uses ‘in category’ and the other is ‘is category’
Do another ‘elseif’ for each category and make sure the categories are spelt correctly in the admin. To test – just create a post in each category as I have done on this site.
All you do now is edit your theme template to call the catimage and welcometext where you want it to appear. Example: in page.php I use this:

Leave A Comment ...You must be Logged in to Comment