Try with adding this to override.css:
- Code: Select all
.itemImageBlock {
float: left;
margin: 0 17px 0 0;
max-width: 116px;
}
.itemImageBlock {
float: left;
margin: 0 17px 0 0;
max-width: 116px;
}
/* image block for K2 avatar alternate image */
.itemImageBlock {
float: left;
margin: 0 17px 0 0;
max-width: 116px;
}
<img src="<?php echo $this->item->author->avatar; ?>" style="float:left; padding-right:10px;" />
<div class="itemBlock">
<img src="<?php echo $this->item->author->avatar; ?>" style="float:left; padding-right:10px;" />
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
<div class="itemImageBlock"> <a class="itemImage" href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
teitbite wrote:Hi
Is the link a correct project folder ??? If yes than components/com_k2/templates/default/category_item.php is a wrong file, You need to change template's override for this file which is in templates/gk_john_s/html/com_k2/templates/default/category_item.php
<div class="itemBlock">
<?php if(empty($this->item->image)): ?>
<a href="<?php echo $this->item->link; ?>"> <img src="<?php echo $this->item->author->avatar; ?>" style="float:left; padding-right:10px;" /></a>
<?php endif; ?>
<div class="nspArtPage active nspCol1">
<?php if(empty($this->nspArt nspCol1->nspImage)): ?>
<a href="<?php echo $this->nspArt nspCol1->link; ?>"> <img src="<?php echo $this->nspArt nspCol1->author->avatar; ?>" style="float:left; padding-right:10px;" /></a>
<?php endif; ?>