- This topic has 4 replies, 2 voices, and was last updated 4 years, 3 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support › Forums › Flex Theme › Clickable Slider Images
I’m trying to figure out how to make the slider images clickable without having a button or text on it.
Open the lib/widgets/flex-slider-widget.php file and go to line no 120. You will get this code
echo '<li>' . "\n" . $img;
Replace the above code with
echo '<li>' . "\n" . '<a href="' . get_permalink() . '" rel="permalink">' . $img . '</a>' . "\n";
Thank you so much Chinmoy! That worked like a charm! 🙂
*deleted for broken code*
Actually, with that adjustment, clicking the slider image takes you to the slider image page, not the link for “Read More”… solved that by changing get_permalink() to $readmoreLink.