Hello!
Any pointers on how to make “Featured Image Slider” image clickable with a URL to the corresponding post?
Hey 360moms!
Can you please post the link to your page and point out the featured image so we can check which blog style you are using and provide you an accurate answer?
Regards,
Yigit
Here you go
Here you go
Hi,
There is no option for that by default but you can enable the “read more” button in the slider options. Look for the “Title and Read More Button”.
Best regards,
Ismael
Yes I know. I’m asking for pointers to customize the code.
Hi,
I see. Please add this in the functions.php file:
// slide link
add_action('wp_footer', 'ava_new_custom_script_sl');
function ava_new_custom_script_sl(){
?>
<script type="text/javascript">
(function($) {
function c() {
$('.avia-featureimage-slider-wrap .avia-slideshow-inner li').click( function() {
var link = $(this).find('.avia-slideshow-button').attr('href');
window.location.href = link;
});
}
c();
})(jQuery);
</script>
<?php
}
And in the Quick CSS field, add this code:
.avia-featureimage-slider-wrap li {
cursor: pointer;
}
Best regards,
Ismael
Trying to do the same thing as above, but changes aren’t showing up on live site.
I’ve added the code and the quick CSS but changes aren’t showing up.
Any suggestion on how to fix this.
Hi,
Do you have any cache active, which you need to disable to have the things work properly?
Best regards,
Basilis
Issue was resolved here: https://kriesi.at/support/topic/how-to-make-the-featured-image-slider-clickable/
Turned out a CSS class just needed to be updated.