Date Icon
-
Thank you in advance for any help!!
The code below came from incertus, but I need help with specifics.
My page: http://sunruby.com/make-friends/
Where exactly do I insert that code so that the icon is right to the left of the post heading?
…………………..
.time { float: left; background: #545363; width: 45px; color: White; text-align: center; margin-right: 6px; padding-bottom: 3px; border: 1px solid Black; } .month { color: #ABAC9C; font-variant:small-caps; border-bottom: 1px solid #B0C4DE; background: Black; font-size: 110%; }
…………………..
The above code goes in “style.css”, but in which sectin (eg: /* main structure */, /* pagelist and search */, etc)?……………
<div class="time"> <div class="month"><?php the_time('M ') ?></div> <div class="day"><?php the_time('j ') ?></div> <div class="year"><?php the_time(' Y') ?> </div> ................. The above code goes in my "index.php", but where? Below is the index.php <?php get_header(); ?> <div id="content-ad"> <?php include (TEMPLATEPATH . '/ads.php'); ?> <div id="text"> <?php include (TEMPLATEPATH . '/banner.php'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="pub"> Posted on by <?php the_author(); ?> in <?php the_category(', ') ?><?php edit_post_link(', Edit'); ?> </div> <?php the_content('Read the rest of this entry »'); ?> <div class="comm"><?php comments_popup_link('Post Comment', 'Comments (1)', 'Comments (%)'); ?></div> </div> <?php endwhile; ?> <div id="nav"> <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div> <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> </div> <?php else : ?> <div class="post"> <h2>Not Found</h2> <p>Sorry, but you are looking for something that isn't here.</p> </div> <?php endif; ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Date Icon’ is closed to new replies.