Welcome, Guest
Username: Password: Remember me

TOPIC: Year in blog dates

Year in blog dates 3 years 3 months ago #5553

I really love this template for professional websites. I am currently editing the template but I do have a question about the OT-blogs which I am using K2 to publish. When they show up on the front-end, the theme is only display month, day and time. Is there a way to get the created year on as well?
The administrator has disabled public write access.

Re: Year in blog dates 3 years 3 months ago #5565

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hello,

You should edit those files below:

templates\ot_surfdev\html\com_k2\templates\blog\category_item.php templates\ot_surfdev\html\com_k2\templates\blog\item.php
templates\ot_surfdev\html\com_k2\templates\blog\category_item.php around line: 35-39
<span class="itemDateCreated">
...
</span>
templates\ot_surfdev\html\com_k2\templates\blog\category_item.php around line: 34-38

with this code:
<span class="ot-year"><?php echo JHTML::_('date', $this->item->created, JText::_('Y')); ?></span>
The administrator has disabled public write access.

Re: Year in blog dates 3 years 3 months ago #5591

Thank you so much for a timely response, for a free template nonetheless. This makes me feel comfortable about purchasing a sub in the future.

THANKS!
The administrator has disabled public write access.
Time to create page: 0.163 seconds