teitbite wrote:Hi
I can see now that K2 style was overriden so most of the element got removed to match the layout. Please add this code to /html/com_k2/templates/default/category_item.php
- Code: Select all
<?php if ($this->item->params->get('catItemReadMore')): ?>
<!-- Item "read more..." link -->
<div class="catItemReadMore">
<a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
<?php echo JText::_('K2_READ_MORE'); ?>
</a>
</div>
<?php endif; ?>
Found it. For others struggling with this issue:
Place the code in:
/html/com_k2/templates/xxx/category_item.php
xxx = the template name.
If you use the "sponsors" template, the code should be added to:
/html/com_k2/templates/sponsors/category_item.php
I placed it within: <div class="events-content">:
- Code: Select all
<div class="events-content">
<?php if($this->item->params->get('catItemTitle')): ?>
<h3>
<?php if ($this->item->params->get('catItemTitleLinked')): ?>
<a href="<?php echo $this->item->link; ?>">
<?php
$title_data = explode('--', $this->item->title);
if(count($title_data) > 1) {
echo $title_data[0] . '<small>' . $title_data[1] . '</small>';
} else {
echo $title_data[0];
}
?>
</a>
<?php else: ?>
<?php
$title_data = explode('--', $this->item->title);
if(count($title_data) > 1) {
echo $title_data[0] . '<small>' . $title_data[1] . '</small>';
} else {
echo $title_data[0];
}
?>
<?php endif; ?>
</h3>
<?php endif; ?>
<?php echo $this->item->event->AfterDisplayTitle; ?> <?php echo $this->item->event->K2AfterDisplayTitle; ?>
<?php if($this->item->params->get('catItemIntroText')): ?>
<?php echo $this->item->introtext; ?>
<?php if(isset($this->item->editLink)): ?>
<a class="catItemEditLink modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>"> <?php echo JText::_('K2_EDIT_ITEM'); ?> </a>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->item->params->get('catItemReadMore')): ?>
<!-- Item "read more..." link -->
<div class="catItemReadMore">
<a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
<?php echo JText::_('K2_READ_MORE'); ?>
</a>
</div>
<?php endif; ?>
</div>
Thanks a lot!