Archive widget link to Archive page
-
Hello,
I’m having a problem trying to style the h2 title and permalinks of the archive page.
I’m using the stock “Archives” widget which was easy to style. However, when you click on the link (January 2010) to view all posts for that month, it loads the full archived posts for that month and on the far right, it displays post links and a h2 title (Archive for January, 2011) that is positioned flush left on the page/div. I looked at the archive.php file and placed a div class around the links to position away from the left edge eg;
<div class="arch_list"><div <?php post_class() ?>> <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3> <?php /*?><?php include (TEMPLATEPATH . '/inc/meta.php' ); ?><?php */?></div>
This worked fine. However I cannot find a way to style the title: “Archive for January, 2011” It stays flush left.
The source code shows the title wrapped around h2 tags only eg:
<h2>Archive for January, 2011</h2>
Can anyone please give me a suggestion on how I can format this h2 title.
Thank you very much.
Kind Regards,
Frank
- The topic ‘Archive widget link to Archive page’ is closed to new replies.