Having trouble getting a background to show
-
Hi all,
https://i44.tinypic.com/f4hf8p.jpg
I’d like to have the background in Archive in my little Latest News widget, but no matter how much I try I can’t seem to get it to work.
The code for the widget is:
<li> <ul> <?php $recentPosts = new WP_Query(); $recentPosts->query('showposts=5'); ?> <?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> <!-- story header --> <div class="postheader"> <div class="postinfo"> <p> <?php printf(__('Posted by %s on %s','fusion'),'<a href="'. get_author_posts_url(get_the_author_ID()) .'" title="'. sprintf(__("Posts by %s","fusion"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>', get_the_time(get_option('date_format'))); ?> <?php edit_post_link(__('Edit','fusion')); ?></p> </div> </div> <!-- /story header --> <?php the_excerpt(); ?></li> <?php endwhile; ?> </ul> </li>
This is exactly the same CSS code (postheader,postinfo) that’s in the Archive section, but the background doesn’t seem to show in the PHP widget.
From Stylesheet:
.post .postinfo, .attachment .postinfo{ background: #e2e3e3 url(images/postinfo-bg.gif) repeat-x left top;
Any ideas why this might be? There’s 2 backgrounds, the little line in the news title, and then the shaded background in the posted by.
wp-content/themes/fusion/images/div-h2.gif
wp-content/themes/fusion/images/postinfo-bg.gifAny ideas would be very much appreciated. Thanks
PS I’d even be happy enough to add the backgrounds manually instead of through CSS if anyone would know how to do that.
Thanks
- The topic ‘Having trouble getting a background to show’ is closed to new replies.