Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   Calendar icon for date (http://forum.bytesforall.com/showthread.php?t=1537)

jpreuss May 4, 2009 10:26 AM

Calendar icon for date
 
I am just starting a blog and have seen quite a few people display a calendar icon that has the date of the post. How can one integrate that into my posts?

I am this is clear if not ask questions and will give answers if I know how.

Thank you for any help.

Flynn May 5, 2009 06:47 PM

I know what you mean and there's probably a plugin for that http://wordpress.org/extend/plugins/

jpreuss Jul 21, 2009 05:28 AM

Sorry I brought this back up, but I have not found a solution until now.

I have found what I want to use, but it's code and not a plugin and I am having some issues in trying to get it setup.

I have put the css in the css inserts location, the code is (for reference):

Code:

.the_date {
display:block;
text-align: center;
float:left;
font-family: Arial, Helvetica, sans-serif;
background: url(/images/dateicons/dateicon.) no-repeat;
width:60px;
}

.date_m {
display:block;
font-size: .9em;
margin:0;
padding:0;
font-weight: bold;
text-align:center;
}

.date_d {
display:block;
font-size:1.4em;
margin:0;
padding:0.7em 0 1.3em 0;
text-align: center;
}

After that's entered, you're supposed to add the following to the main template page before the line <a href=”<?php the_permalink() ?>:

Code:

<div class=”the_date”>
<div class=”date_m”><?php the_time(’F') ?></div>
<div class=”date_d”><?php the_time(’jS’) ?></div>
</div>

Either I must be blind or this spot is either in a different file or coded a different way.

Your help is greatly appreciated.

juggledad Jul 21, 2009 06:29 AM

what version of Atahualpa?

jpreuss Jul 21, 2009 11:33 AM

Just updated to the 3.4.2 version 3 days ago.

juggledad Jul 21, 2009 04:14 PM

you could put it in ATO->Edit POST/PAGE INFO ITEMS->FOOTER:
it will show the date if you put it there.

brisck1 Jun 9, 2011 08:11 AM

Sorry to dig up such an old thread, but I stumbled across this hoping to do the same thing on my blog but the code given here no longer seems to work (i'm guessing because you can no longer insert php code?)

I'm wondering if this is still possible via CSS/HTML inserts, and if so how?

Thanks
Rob

juggledad Jun 9, 2011 09:05 AM

You are right, because of the wordpress restriction, you can't use the php anymore. You could edit the theme php and put it in there, but you will have to do it each time. You could add a new widget area in it, put a text widget in and add the code to it. You will need the exec-php widget or such. Put it in the index.php and then use the CSS to format and position the date


All times are GMT -6. The time now is 12:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.