How could I add a button to the modal window ?
I’d like the button to be similar to the others of this windows.
The button should allow/disallow a specific cookie tracking (slimstat).
The html link is :
<a href="#" onclick="javascript:SlimStat.optout(event, false);">Accept</a> or <a href="#" onclick="javascript:SlimStat.optout(event, true);">Deny</a>
Hey zylphe,
Thank you for using Enfold.
Have you tried adding a custom button linked to another page in your modal popup window? You can then use javascript to add the onclick attribute on page load. You can actually add it directly in the modal popup template, but you’ll have to redo it every update.
// https://api.jquery.com/attr/
// https://learn.jquery.com/using-jquery-core/document-ready/
Best regards,
Ismael