Support » Themes and Templates » Category Icons Positioning Help

Category Icons Positioning Help

  • Good Morning,

    I’m attempting to add category icons to an existing theme on this blog:

    I added a plugin called Category Icons and successfully added in the code <?php if (function_exists(‘get_cat_icon’)) get_cat_icon(); ?> to multiple template files. The icon does show, but I’m having some trouble getting the article title to float next to it.

    Here is what my code looks like:

    <div style="float:left; margin-right:10px; width:15px;">
    <?php if (function_exists('get_cat_icon')) get_cat_icon(); ?>
    <div style="float:left;">
    <h4 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'colabsthemes' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
    <div class="clear"></div>

    Any idea what I’m doing wrong?


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category Icons Positioning Help’ is closed to new replies.