Link in Image article

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Jun 02, 2015 3:40 pm
Reply with quote
Report this post
How can I leave the image clickable article?

https://demo.gavick.com/joomla25/game/i ... egory-blog
User avatar
Senior Boarder

GK User
Tue Jun 02, 2015 4:52 pm
Reply with quote
Report this post
leave? Could you please be more specific?
User avatar
Moderator

GK User
Tue Jun 02, 2015 5:33 pm
Reply with quote
Report this post
That link I sent theme game, note that the article image has no link.
I wish all articles that were in the blog category, had its Clickable images, like the K2 component.
User avatar
Senior Boarder

GK User
Fri Jun 05, 2015 3:08 pm
Reply with quote
Report this post
You need to edit this file:
Code: Select all
templates/gk_game/html/com_content/category/blog_item.php

Find this block of code:
Code: Select all
   <div class="img-intro-<?php echo $images->float_intro ? $images->float_intro : $params->get('float_intro'); ?> itemImageBlock">
      <img
         <?php if ($images->image_intro_caption):
            echo 'class="caption"'.' title="' .$images->image_intro_caption .'"';
         endif; ?>
         <?php if (!empty($images->image_intro)):?>
            style="float:<?php echo  $params->get('float_intro') ?>"
         <?php else: ?>
            style="float:<?php echo  $images->float_intro ?>"
         <?php endif; ?>
         src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->image_intro_alt; ?>"/>
   </div>

and change it to:
Code: Select all
   <div class="img-intro-<?php echo $images->float_intro ? $images->float_intro : $params->get('float_intro'); ?> itemImageBlock">
      <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); ?>">
      <img
         <?php if ($images->image_intro_caption):
            echo 'class="caption"'.' title="' .$images->image_intro_caption .'"';
         endif; ?>
         <?php if (!empty($images->image_intro)):?>
            style="float:<?php echo  $params->get('float_intro') ?>"
         <?php else: ?>
            style="float:<?php echo  $images->float_intro ?>"
         <?php endif; ?>
         src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->image_intro_alt; ?>"/>
      </a>
   </div>
User avatar
Moderator

GK User
Sat Jun 13, 2015 5:07 am
Reply with quote
Report this post
Thank U
User avatar
Senior Boarder

GK User
Mon Jun 15, 2015 9:01 am
Reply with quote
Report this post
Is there anything else I can help you with regarding this topic?
User avatar
Moderator


cron