Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #413902

    Hello,

    I would like to add JS to an existing theme button. As you can see on my website i have now two buttons. The small one is working, but the big one is not. I would like to make the big button work the same way, so i can delete the small one.

    Thank you in advance!

    #414287

    Hi Sasolini!

    Thank you for coming back.

    This is not possible out of the box, because the button is a

    
    <a href ...> 
    

    You need to modify

    \enfold\config-templatebuilder\avia-shortcodes\buttons.php line 276ff.

    Add a unique custom class to the button and add an on_click event with jQuery to that class.

    Best regards,
    Günter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.