Hi hope you can help
I use ttf-titles to the header/title on my blog. On must of the sites its looks like this:
But under archive it looks like this, wich I think is a bit messy:
The code for the archive, looks like this:
<?php get_header(); ?>
<div id="container">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<div id="message-left"><?php /* If this is a category archive */ if (is_category()) { ?><br/>
<h2> Archive for the ‘ <?php the_ttftext(single_cat_title()); ?>’ Category</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2>Posts Tagged ‘ <?php the_ttftext (single_tag_title()); ?>’ </h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2>Archive for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2><?php the_ttftitle($before = "", $after = "", $echo = true, $style = "basic", $overrides = ""); ?>Archive for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2><?php the_ttftitle($before = "", $after = "", $echo = true, $style = "basic", $overrides = ""); ?>Archive for <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2><?php the_ttftitle($before = "", $after = "", $echo = true, $style = "basic", $overrides = ""); ?>Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2><?php the_ttftitle($before = "", $after = "", $echo = true, $style = "basic", $overrides = ""); ?>Blog Archives</h2>
<?php } ?></div>
<?php $i = 0; ?>
<?php while (have_posts()) : the_post(); $i++; ?>
<?php if ($i == 4) { ?>
<div class="clear height25"><br/><br/></div>
<?php $i = 1;} ?>
<div class="featured post-<?php the_ID(); ?><?php if ($i == 3) { ?> last<?php } ?>">
<div class="thumbnail">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Read more about <?php the_title(); ?>">
<img src="<?php echo get_thumbnail_url(); ?>" alt="" />
</a>
</div>
<div class="clear"></div>
<strong><a href="<?php the_permalink() ?>" rel="bookmark" title="Read more about <?php the_title_attribute(); ?>"><?php the_title() ?></a></strong>
<?php the_excerpt(); ?>
<div class="alignleft postmetadata"><?php the_category('<br/>') ?></div>
<div class="alignright">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Read more about <?php the_title(); ?>">Read More...</a><br/><span class="postmetadata">
<?php comments_popup_link('Start a discussion »', '1 Comment »', '% Comments »'); ?></span>
</div>
</div>
<?php endwhile; ?><div class="clear"> </div><br/>
<div class="navigation">
<div class="alignleft left25"><?php next_posts_link('<h3><< Older Posts</h3>'); ?></div>
<div class="alignright right25"><?php previous_posts_link('<h3>Newer Posts >><h3>') ?></div>
</div>
<?php else : ?>
<div id="message-left"><a href="<?php bloginfo('url'); ?>/"><img src="<?php bloginfo('template_directory'); ?>/images/text-goback.gif" style="width:200px; height:40px; border:0px; margin:0px;" alt=""/></a></div>
<div id="message-post-center"><h2>Not Found</h2></div>
<div id="message-right"><img src="<?php bloginfo('template_directory'); ?>/images/text-contact.gif" width="100" height="21" alt=""/><br/><a href="javascript:location.href=('mailto' + ':your@' + 'email.com')">Send Me Email</a></div><div class="clear"></div><div class="clear"></div>
<div style="width:400px; margin:0 auto 0; padding:25px;">
<p>Sorry, but you are looking for something that isn't here.<br/>Would you like to search again?</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?></div>
<?php endif; ?>
<?php get_footer(); ?>
I have tried different things, but is kind of a Rookie, and can get it right. Is there anyone who can help me?