Support » Themes and Templates » News Leak Theme – Category images

  • Resolved coruscant


    Hi. I am using the News Leak theme and I want certain categories to have background images for the background of the <span> that the category title is. I’ve tried to do this purely within the category template, but I can’t get it to work properly. Please excuse the terribly ugly coding but I’m not very knowledgeable about php and even less about css, so I tried to do this without interfering with the css file. Here is my code:
    <span <?php if (is_category('Category 9')) : ?> style="background-image:url(')"> <?php else : ?> style="background-color: #1774b4;" class="category_heading"><?php endif; ?><h3><p style="font-size:28px" style="color:white"><?php single_cat_title(''); ?></h3></p> &nbsp; &nbsp; <font color="white"><?php echo category_description( $category_id ); ?></font></span>
    Here’s my site URL: and the category I have for the custom image is the one called ‘UK’.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘News Leak Theme – Category images’ is closed to new replies.