Hide round date in just one K2 category
- GK User
- Sat Aug 25, 2012 9:34 pm
Hi there,
I have managed to hide the round black circle with the date in the joomla articles, now I would like to do the same but just in one of the categories of K2.
Thanks a lot
I have managed to hide the round black circle with the date in the joomla articles, now I would like to do the same but just in one of the categories of K2.
Thanks a lot
-
- Fresh Boarder
- GK User
- Sat Aug 25, 2012 10:10 pm
Hi
On K2 Category options > "Item view options in category listings" you can hide "Item created date and time" parameter.
For the item view, please hide "Item created date and time" on "Item created date and time".
Them open the following file ../templates/gk_boutique/html/com_k2/templates/default/item.php and find this fragment:
replace with
Cheers
On K2 Category options > "Item view options in category listings" you can hide "Item created date and time" parameter.
For the item view, please hide "Item created date and time" on "Item created date and time".
Them open the following file ../templates/gk_boutique/html/com_k2/templates/default/item.php and find this fragment:
- Code: Select all
<!-- Date created -->
<div class="itemDate">
<time datetime="<?php echo JHtml::_('date', $this->item->created, 'Y-m-d'); ?>">
<span class="itemDateDay"><?php echo JHTML::_('date', $this->item->created , JText::_('d')); ?></span>
<span class="itemDateMonth"><?php echo JHTML::_('date', $this->item->created , JText::_('M')); ?></span>
</time>
</div>
replace with
- Code: Select all
<!-- Date created -->
<?php if($this->item->params->get('itemDateCreated')): ?>
<div class="itemDate">
<time datetime="<?php echo JHtml::_('date', $this->item->created, 'Y-m-d'); ?>">
<span class="itemDateDay"><?php echo JHTML::_('date', $this->item->created , JText::_('d')); ?></span>
<span class="itemDateMonth"><?php echo JHTML::_('date', $this->item->created , JText::_('M')); ?></span>
</time>
</div>
<?php endif; ?>
Cheers

-
- Platinum Boarder
- GK User
- Tue Jan 15, 2013 8:43 pm
Hi I am having this same issue..somewhat in joomla 3.0. I would like to remove the circle date from a single category as well as all of that category's items.
I found the code:
at line: 52 of item.php and changed it to:
but had no effect. Where am I going wrong?
I found the code:
- Code: Select all
<!-- Item title -->
<!-- Date created -->
<div class="itemDate">
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>">
<span class="itemDateDay"><?php echo JHTML::_('date', $this->item->created , JText::_('d')); ?></span>
<span class="itemDateMonth"><?php echo JHTML::_('date', $this->item->created , JText::_('M')); ?></span>
</time>
</div>
at line: 52 of item.php and changed it to:
- Code: Select all
<!-- Date created -->
<?php if($this->item->params->get('itemDateCreated')): ?>
<div class="itemDate">
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>">
<span class="itemDateDay"><?php echo JHTML::_('date', $this->item->created , JText::_('d')); ?></span>
<span class="itemDateMonth"><?php echo JHTML::_('date', $this->item->created , JText::_('M')); ?></span>
</time>
</div>
<?php endif; ?>
but had no effect. Where am I going wrong?
-
- Fresh Boarder
3 posts
• Page 1 of 1