carouselxt e infinity model

Hey.
I want to make my thumbnail clickable.
Clicking on the image will redirect you to the article.
1 year 3 months ago #1 by Bn Design
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5193) Offline
Hi can you tell me what theme do you use?
1 year 3 months ago #2 by TemplatePlazza
The topic has been marked as resolved.
I am using minifrontpage.
Template (model) carouselxt e infinity

Joomla4
1 year 3 months ago - 1 year 3 months ago #3 by Bn Design
Last edit: 1 year 3 months ago by Bn Design.
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5193) Offline
Hi I'm assuming you enable the setting Thumbnail Mode to Thumbnail as Background, because because if you set it to Thumbnail Image then the image is linking to article.
So, basically you can do that via template override 


open the file infinity_ajax.php then add the code 
<a href="<?php echo $item->link; ?>
before the code 
<div class="mfp-col-xs-12 mfp-col-sm-6 mfp-col-md-<?php echo 12/$infinity_num_column;?> mfp_infinity_item">
and add the colsing 
</a>
before 
<?php
endforeach; ?>
1 year 3 months ago - 1 year 3 months ago #4 by TemplatePlazza
Last edit: 1 year 3 months ago by TemplatePlazza.
The topic has been marked as resolved.
Ok. Thank's.
And how do I do it in the carouselxt model?
1 year 3 months ago #5 by Bn Design
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5193) Offline
Hi, add 
<a href="<?php echo $item->link; ?>
before
<div class="mfp-carouselxt-<?php echo $module->id; ?>">
adn closing 
</a>
before 
<?php
endforeach; ?>
1 year 3 months ago #6 by TemplatePlazza
The topic has been marked as resolved.
Powered by Kunena Forum