Abland
|
Hi, Scott Jay,
I took from the following link as reference:
http://justfreetemplates.com/blog/2010/01/09/262.html
Scroll down to the last (3rd) example, and right-click save the image (fulldate.jpg) and place in your theme's "images" folder.
In your theme create a folder "templates" (not neccessary but I do this to keep things neat and it applies to the code below), and in that new folder create the new file "full-date.php".
Copy the html from the linked example into the new file, but with some conditionals to keep the new date icon off pages:
<?php if (is_page()) { } else { ?>
<div class="date">
<div class="date-month"><?php the_time('M'); ?></div>
<div class="date-day"><?php the_time('d'); ?></div>
</div>
<?php } ?>
Next, copy the css from the example into your theme's "style.css", but with a few edits. The first four lines are added to ".date", and the image is referenced from the "images" folder:
.date {
position: relative;
display: inline;
float: left;
margin: 0 5px 5px 0;
background:#fff url('images/fulldate.jpg') repeat-x scroll top left;
width:60px;
height:60px;
text-align:center;
color:#fff;
font-family:Arial, Helvetica, sans-serif;
text-transform:uppercase;
}
.date .date-day {
color:#333;
font-family:Georgia, "Times New Roman", Times, serif;
font-size:35px;
}
.date .date-month {
font-size:11px;
font-weight:bold;
}
Finally, in "library/wrappers.php" find the following approximately line 42:
echo $before;echo $thumbnail;
?>
<div class="art-postcontent">
<!-- article-content -->
<?php echo $content; ?>
<!-- /article-content -->
</div>
<div class="cleared"></div>
<?php
echo $after;
Add "get_template_part('templates/full','date');" before "echo $content;":
echo $before;echo $thumbnail;
?>
<div class="art-postcontent">
<!-- article-content -->
<?php get_template_part('templates/full','date');echo $content; ?>
<!-- /article-content -->
</div>
<div class="cleared"></div>
<?php
echo $after;
|
Abland
|
Hi, Scott Jay,
Looks good . To remove the date icon on single posts, in your theme's "content-single.php", it's usually in:
'before' => theme_get_metadata_icons('edit,date', 'header'),
Remove " ,date "
I notice your share links are added twice, too. This might be related:
http://www.artisteer.com/Default.aspx?post_id=159519&p=forum_post
|