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

    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>

    • This topic was modified 5 years, 2 months ago by zylphe.
    #1137339

    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

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