Remove date in the article

GK User
Tue Jul 17, 2012 4:42 pm
Hello,

Another query

I want to delete the article date.

Post screenshot.

Thanks
User avatar
Fresh Boarder

Konrad M
Tue Jul 17, 2012 6:06 pm
Hi,
please try add to override.css
Code: Select all
.item-page .itemDate {
display:none;
}

and remember to enable override.css option in template settings.
User avatar

GK User
Thu Jul 19, 2012 12:34 am
Hello Konrad,

Thanks very much, solved.
User avatar
Fresh Boarder

GK User
Thu Jul 19, 2012 8:18 am
Maybe this is an better solution:
gk_boutique/html/com_content/article/default.php

Edit line 78:
Code: Select all
<div class="itemDate">
   <span class="itemDateDay">
      <time datetime="<?php echo JHtml::_('date', $this->item->created, 'd'); ?>"><?php echo JHTML::_('date',$this->item->created, 'd'); ?></time>
   </span>
   <span class="itemDateMonth">
      <time datetime="<?php echo JHtml::_('date', $this->item->created, 'M'); ?>"><?php echo JHTML::_('date',$this->item->created, 'M'); ?></time>
   </span>
</div>


To:
Code: Select all
<?php if ($params->get('show_publish_date')) : ?>

<div class="itemDate">
   <span class="itemDateDay">
      <time datetime="<?php echo JHtml::_('date', $this->item->created, 'd'); ?>"><?php echo JHTML::_('date',$this->item->created, 'd'); ?></time>
   </span>
   <span class="itemDateMonth">
      <time datetime="<?php echo JHtml::_('date', $this->item->created, 'M'); ?>"><?php echo JHTML::_('date',$this->item->created, 'M'); ?></time>
   </span>
</div>
<?php endif; ?>


Now you can choose via Joomla if you want to publish the date

Note: i'm not good at codes...
User avatar
Junior Boarder

GK User
Fri Jul 20, 2012 9:33 am
this is not solving the article dates on print screen anyway... some hints to solve it?

:dry:
User avatar
Junior Boarder

Konrad M
Mon Jul 23, 2012 1:16 pm
@walesa can you give url to page with issue ?
User avatar

GK User
Thu Aug 02, 2012 1:29 pm
Konrad M wrote:@walesa can you give url to page with issue ?


Sorry Konrad,
I miss the post and I'm also working in local so i cannot gave you any link.
I came back today to this issue and still i do not find a solution.

The point is that taking away the date in the article is working but for some reason the print pop-up windows still show the date.

I check the code with chrome tools and the <div class="itemDate"> is there even if it is hidden in override.css think it is cause override will act on the template and not in the popup window, in fact there's no sign of override.css in the css of the page generated from it.

I can act on class="itemDateDay and itemDateMonth but since K2 is using the same it will take me away the date from the k2 blog and i do not want.. any solution?
User avatar
Junior Boarder

Konrad M
Mon Aug 06, 2012 1:27 pm
@walesa just try add this code to css/system/print.css at the bottom after last selector. This css file is loaded when print popup button is activated.
User avatar

GK User
Wed Aug 08, 2012 3:15 pm
Konrad M wrote:@walesa just try add this code to css/system/print.css at the bottom after last selector. This css file is loaded when print popup button is activated.


not working, any other hints? :dry:
User avatar
Junior Boarder

Konrad M
Thu Aug 09, 2012 10:20 am
Change code in print.css to this one:
Code: Select all
.itemDate {
display:none !important;
}
User avatar


cron