Please add following css overrides.
- Code: Select all
/* K2 Category Leading Group */
.groupLeading span.catItemImage img { width:300px!important; }
.groupLeading .catItemImageBlock { float:left; margin-right: 10px; }
/* K2 Category Primary Group */
.groupPrimary span.catItemImage img { width:200px!important; }
.groupPrimary .catItemImageBlock { float:left; margin-right: 10px; }
For Primary group as it is sharing 2 articles in same column there might not be enough space for article text next to image so perhaps you can use below instead.
- Code: Select all
/* K2 Category Primary Group */
.groupPrimary span.catItemImage img { width:300px!important; }
.groupPrimary .catItemImageBlock { float:none; margin-right: 10px; }
If you want to bring titles on top of image follow below changes.
Find File: \templates\gk_twn2\html\com_k2\templates\default\category_item.php
Find Lines: 33 to 68
Line 33:
- Code: Select all
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
Line 68:
- Code: Select all
<!-- Plugins: AfterDisplayTitle -->
Replace from 33 to 68 with below code.
- Code: Select all
<div class="catItemHeader">
<?php if($this->item->params->get('catItemTitle')): ?>
<!-- Item title -->
<h3 class="catItemTitle">
<?php if ($this->item->params->get('catItemTitleLinked')): ?>
<a href="<?php echo $this->item->link; ?>">
<?php echo $this->item->title; ?>
</a>
<?php else: ?>
<?php echo $this->item->title; ?>
<?php endif; ?>
<?php if($this->item->params->get('catItemFeaturedNotice') && $this->item->featured): ?>
<!-- Featured flag -->
<span>
<sup>
<?php echo JText::_('K2_FEATURED'); ?>
</sup>
</span>
<?php endif; ?>
</h3>
<?php endif; ?>
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
<!-- Item Image -->
<div class="catItemImageBlock">
<span class="catItemImage">
<a 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); ?>">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
</a>
</span>
<div class="clr"></div>
</div>
<?php endif; ?>
</div>
<!-- Plugins: AfterDisplayTitle -->
See you around...