How toMake 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) :

add_filter( "{$prefix}_entry_title", 'bm_caticonslite' );

Then add this function at the end of the file :

function bm_caticonslite($entry_title) {
  return get_cat_icon_lite().$entry_title;

There you go : the icons are now displayed ! But wait, they are above the title. So we need to add some CSS too in style.css :

#content img.caticonslite_bm {
  float: left;
  vertical-align: middle;
  margin-right: 4px;
  border: none;

This works for example with Live WireNews, and Hatch.