Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 11: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, 07: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, 06: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 07:01 AM.
  #4  
Old Jul 21, 2009, 07:29 AM
juggledad's Avatar
juggledad
 
23,765 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, 12:33 PM
jpreuss
 
3 posts · May 2009
Just updated to the 3.4.2 version 3 days ago.
  #6  
Old Jul 21, 2009, 05:14 PM
juggledad's Avatar
juggledad
 
23,765 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, 09: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, 10:05 AM
juggledad's Avatar
juggledad
 
23,765 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



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


All times are GMT -6. The time now is 12:15 PM.


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