Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

Calendar icon for date


  #1  
Old May 4, 2009, 10:26 AM
jpreuss
 
3 posts · May 2009
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.
  #2  
Old May 5, 2009, 06:47 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
I know what you mean and there's probably a plugin for that http://wordpress.org/extend/plugins/
  #3  
Old Jul 21, 2009, 05:28 AM
jpreuss
 
3 posts · May 2009
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.

Last edited by jpreuss; Jul 21, 2009 at 06:01 AM.
  #4  
Old Jul 21, 2009, 06:29 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what version of Atahualpa?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jul 21, 2009, 11:33 AM
jpreuss
 
3 posts · May 2009
Just updated to the 3.4.2 version 3 days ago.
  #6  
Old Jul 21, 2009, 04:14 PM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you could put it in ATO->Edit POST/PAGE INFO ITEMS->FOOTER:
it will show the date if you put it there.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jun 9, 2011, 08:11 AM
brisck1
 
15 posts · Jun 2011
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
  #8  
Old Jun 9, 2011, 09:05 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Calendar gproper Page & Category Menu Bars 3 Nov 22, 2011 02:40 PM
Calendar Date Problem yosh66 Sidebars & Widgets 0 Jun 21, 2009 10:16 AM
[SOLVED] Calendar recommendation? hospitalera Plugins & Atahualpa 2 May 17, 2009 10:15 AM
color of wp-calendar boris Sidebars & Widgets 2 Apr 6, 2009 05:12 AM
Best calendar plugin? paulae Plugins & Atahualpa 0 Mar 13, 2009 10:33 AM


All times are GMT -6. The time now is 05:50 AM.


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