Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21857

    I love the way the date displays on a post with the overlapping circles. The only problem is this only displays for the “Global Default Page Template”. I would like it to display on one of my created page templates. Can you please advise?

    Thanks!

    #113355

    Hi,

    You need to add following code to your php file/page template to display the date:

    <div class="date">
    <span class='day'><?php the_time('d') ?></span>
    <span class='date_group'>
    <span class='month'><?php the_time('M') ?></span>
    <span class='year'><?php the_time('Y') ?></span>
    </span>
    </div><!-- end date -->

    #113356

    Thank you for your response. I do have a few more questions though. Which php file do I add the above code to? And, will it add the date to all of my dynamic templates? Lastly, the date will appear on just posts right, not pages?

    #113357

    Hi,

    Sorry for the delay. Weekend and all..

    You originally wrote that ‘ I would like it to display on one of my created page templates.’

    Can you elaborate please, do you mean you want to display the contents of a post inside a dynamic template element table, or dynamic element display post/page, or dynamic element blog or the display post category element? Because I suppose those 2 circles with the date can fit in any of them. . The elements are all in file /includes/helper-template-dynamic.php of the theme calling different files .

    You can try this. Actually you should first update Choices. 1.7 is the last version and you can download it after logging into themeforest.net using the account you purchased the theme under and then use ftp to update. Please be aware the update will overwrite all your theme files, so if you made customization to any file , make sure to back up your install first.

    Once you are done, you can open /includes/loop-index.php and copy lines 70-93 and you need to paste it into /includes/loop-page.php on perhaps line 24. I will test it out for now, but do respond regarding how you want to use this since as I wrote in the beginning there are multiple ways to do this.

    Thanks,

    Nick

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Add date stamp to page templates’ is closed to new replies.