Make entire thumb clickable

I am using the carouseltxt theme on the "featured Events" section of our homepage. I was wondering if there is a way for me to make the entire thumbnail clickable to the story instead of just the article title?
Boston Event Guide
5 months 6 days ago #1 by jeff popkin

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5177) Offline
You can do it via template override as well. You just need to move the <a> tag from the title to above the item container. In this case, you only need to modify the carouselxt.php file on line 194 as follows:
<h4 class="mfp_carouselxt_title">
<a href="<?php echo $item->link; ?>" itemprop="url">
<?php echo JHtmlString::truncate(strip_tags($item->title), $title_truncate); ?>
</a>
</h4>
into this
<h4 class="mfp_carouselxt_title">
<?php echo JHtmlString::truncate(strip_tags($item->title), $title_truncate); ?>
</h4>

Then, add the following code:
<a href="<?php echo $item->link; ?>" itemprop="url">
before line 179
<div class="mfp_carouselxt_item">
And its closing tag on line 282 before:
<?phpendforeach; ?>
5 months 6 days ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum