• Hi All,

    i’m trying to include the favorite button, via php code, into a swipebox, to allow user to favorite the “post” when the swipebox is open. Swipebox display a gallery of featured post images.

    I successfully replaced the swipebox caption with an hidden div containing the swipebox button, on Desktop everything is working as expected, when on Mobile (ios with safari and chrome, android with chrome) the button do not trigger/clicked.

    My idea in some way, is to trigger the favorite button “click” via jquery or javascript, because maybe the problem is that on mobile device, the button is not working due the overlay of swipebox top bar, or maybe due a conflict with the swipe left or right jquery code included on the swipebox script.

    Any idea on how to trigger? can be useful also to recreate something like the Instagram behaviour as double click on the image to favorite the post.

    Many Thanks!

    https://wordpress.org/plugins/favorites/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Trigger favorite button with Jquery / Javascript’ is closed to new replies.