Removing the PostDateIcon in a Joomla! Template

PostHeaderIcons (in Artisteer Templates) for Joomla!

If you have a template (more than likely generated by Artisteer) and you want to remove the PostDateIcon (or PostAuthorIcon) from displaying, here’s how to accomplish that task.

For whatever reason, the Artisteer templates apply the icons to the article date and author inside the html over-rides rather than through CSS (like they should).

You’ll need to edit /html/com_content/all_sub_dirs/default.php (or blog_item.php etc.)

Find the line like: 

 <?php ob_start(); ?><?php echo JHTML::_(‘image.site’, ‘PostDateIcon.png’, null, null, null, JText::_(“PostDateIcon”), array(‘width’ => ’17’, ‘height’ => ’18’)); ?> <?php echo JHTML::_(‘date’, $this->item->created, JText::_(‘DATE_FORMAT_LC2’)); ?>

You need to remove the

 <?php echo JHTML::_(‘image.site’, ‘PostDateIcon.png’, null, null, null, JText::_(“PostDateIcon”), array(‘width’ => ’17’, ‘height’ => ’18’)); ?>

part.

Then you may need to go into your /template/your_template/css/style.css and adjust the article header css some:

/* begin PostIcons */
.PostHeaderIcons, .PostHeaderIcons a, .PostHeaderIcons a:link, .PostHeaderIcons a:visited, .PostHeaderIcons a:hover
{
  font-family: Arial, Helvetica, Sans-Serif;
  font-size: 11px;
  color: #630F70;
}

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *