Currently, if you click on the slider’s list, the main frame slides to that item. However, I’d like to make it so that hovering triggers the slide, while a click takes you directly to the post.
For touch devices, I’d like a tap on non-active list items to trigger the slide, and a tap on the active list item takes you to the post.
I’d appreciate any help with this.
1. Currently, if you click on the slider’s list, the main frame slides to that item. However, I’d like to make it so that hovering triggers the slide, while a click takes you directly to the post.
>> To resolve this issue you open file custom.js in your site > wp-content > themes > your theme > assets > js > custom.js . Then replace following code – line 35
$('.news-slider .other-entry li').on('click',function(e){
By
$('.news-slider .other-entry li').on('hover',function(e){
2. For touch devices, I’d like a tap on non-active list items to trigger the slide, and a tap on the active list item takes you to the post.
I have tested on our side and the New Slider still works fine. Please send me your site URL for further checking.
Ah! So simple, works perfectly. Thanks Wilfred.
Please login or Register to submit your answer