normal Year in blog dates

More
10 years 7 months ago #5553 by Robert DeBok
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?

Please Log in or Create an account to join the conversation.

More

Notice: Undefined variable: end_tag_params in /home/omegatheme/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321

Notice: Undefined variable: end_tag_params in /home/omegatheme/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321

Notice: Undefined variable: end_tag_params in /home/omegatheme/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
10 years 7 months ago #5565 by Trung Duong
Replied by Trung Duong on topic Re: Year in blog dates
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:
Code:
<span class="ot-year"><?php echo JHTML::_('date', $this->item->created, JText::_('Y')); ?></span>

Support email: services(at)omegatheme(dot)com


Follow Us to keep updated!

[img


[img


[img]...[/img]

[img]...[/img]

[img]...[/img]

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #5591 by Robert DeBok
Replied by Robert DeBok on topic Re: Year in blog dates
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!

Please Log in or Create an account to join the conversation.

Time to create page: 0.271 seconds

About Growth

Innovative tech for eCommerce growth

Contact Info

Head: No. 3, 175/55 Lane, Lac Long Quan St., Nghia Do Ward, Cau Giay District, Hanoi City, Vietnam