Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

K2 Related Items
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: K2 Related Items

K2 Related Items 8 years, 10 months ago #26926

Under the K2 Item there is part for K2 related items it is very uncomfortable to click just on title. How to make an image or related items aloso clickable to see full item?...
Thank you.

Attachment image_not_clickable.jpg not found

Last Edit: 8 years, 10 months ago by tr_sa.

Re: K2 Related Items 8 years, 10 months ago #26942

  • thuyltt
Dear tr_sa,
Please go to file: \templates\sj_wavenew\html\com_k2\templates\listing-one\item.php and change code:
<div class="item-images">
<?php
$src_rela = $item->imageLarge;
$title_rela= K2HelperUtilities::cleanHtml($item->title);
if($this->item->params->get('itemRelatedImageSize')):
//Create placeholder items images
if (!empty( $src_rela)) {
$thumb_img = '<img src="'.$src_rela.'" alt="'.$title_rela.'" />';
} else if ($is_placehold) {
$thumb_img = yt_placehold($placehold_size['related_items'],$this->item->title);
}
echo $thumb_img;
endif;
?>
</div>

EDIT TO=>

<div class="item-images">
<a href="<?php echo $item->link ?>">
<?php
$src_rela = $item->imageLarge;
$title_rela= K2HelperUtilities::cleanHtml($item->title);
if($this->item->params->get('itemRelatedImageSize')):
//Create placeholder items images
if (!empty( $src_rela)) {
$thumb_img = '<img src="'.$src_rela.'" alt="'.$title_rela.'" />';
} else if ($is_placehold) {
$thumb_img = yt_placehold($placehold_size['related_items'],$this->item->title);
}
echo $thumb_img;
endif;
?>
</a>
</div>

Thanks.
  • Page:
  • 1
Time to create page: 0.20 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes