Make Category Icons Lite work with Easel

To display icons in front of the title with this theme, Easel, go to Category Icons Lite settings to uncheck Posts. Edit the functions.php file in this theme folder to add these lines at end of the file :

add_filter('easel_display_post_title', 'bm_caticonslite');
function bm_caticonslite($entry_title) {
  return get_cat_icon_lite().$entry_title;
}

Then add this to style.css : Continue reading

Make Category Icons Lite work with any Suffusion based theme

With the Suffusion theme, the icons are not displayed in front of the title. So to make this theme compatible, go to Category Icons Lite settings to uncheck Posts. Edit the functions.php file in this theme folder to add this line in the suffusion_theme_setup() function :

add_filter( 'suffusion_get_post_title_and_link', 'bm_caticonslite' );

Then add this function at the end of the file : Continue reading

Make Category Icons Lite work with any Hybrid based theme

There are some Hybrid based themes that don’t work with Category Icons Lite. For example, Ascetica : the icons are not displayed in front of the title. So to make this theme compatible, go to Category Icons Lite settings to uncheck Posts.

Uncheck Posts

Uncheck Posts

Then, in functions.php in Ascetica theme folder, add this line in the function named ascetica_theme_setup (“theme-name_theme_setup” to be generic) : Continue reading

How to use a template tag to display icons with Category Icons Lite

You must have at least v1.0.4. Just copy and paste this code in your template file (index.php, loop.php, etc) :

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

You can also give it the category id. If you want to display the icon for the category id number 3, you’d do that :

<?php echo get_cat_icon_lite(3); ?>