How to assign an icon to a page

In a previous post, I described how to do this with the help of another plugin : Page Category Plus, but this plugin does not exist anymore, so here is another way to do that.

I’ll use the theme “lightword” for this how to. There is 2 parts :

1. Assign a category to a page

When you’re editing the page, go to the Custom Fields, and add : caticons_page as the key, and in the value field, enter the ID of the category to which the icon is assigned to. It’s like assigning a category to a page.

caticon How to assign an icon to a page

The icon is assigned to the category ID 4

Image 21 How to assign an icon to a page

Use the Custom Fields to display a "Page Icon"

2. Use the get_cat_icon tag to display the icon

In the page.php file, after this line : Continue reading

How to add icons to pages/subpages

Update 2 : I’ve written another post on how to do this without any other plugin : How to assign an icon to a page

Update 1 : as the plugin Page Category Plus is not available anymore, nor supported, it’s no longer possible. But You can always contact the author.

The plugin is capable to not only assign an icon to your posts, but also to your pages and subpages.

To do that, you’ll just need to download the Page Category Plus plugin and assign a category to your pages/subpages. Then you’ll be able to manage icons for your pages/subpages from the category icons plugin. Don’t forget to add the get_cat_icon() code to your page.php file.