• Resolved Elliot Taylor

    (@raisonon)


    If I have a modal already open I want to make sure that the Boxzilla modal does not load as well.

    I am using Bootstrap.

    I’ve tried the following code

            // Hide Boxzilla Modal if BS Modal loaded
            $('.modal').on('show.bs.modal', function () {
                // hide boxzilla modal
                Boxzilla.hide(11676);
            })

    This will trigger when a BS modal is loaded. Any ideas how to stop the boxzilla modal loading. In particular, I am talking about with Exit Intent.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Lap

    (@lapzor)

    You could set the cookie for not showing the box to a date/time a few hours in the future, and unset the cookie when the modal is closed.

    Hope that helps!

    Kind regards,

    Thread Starter Elliot Taylor

    (@raisonon)

    Cheers Lap – Can you point me to the cookie name that I can set? Cheers

    Plugin Contributor Lap

    (@lapzor)

    Hi,

    boxzilla_box_YOUR_ID = true, expires “date”.

    Set the boxzilla setting for set the Cookie expiration for “Dismissed”, dismiss the box and you will see the cookie name in the browser console.

    View post on imgur.com

    Hope that helps!

    Kind regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stop Boxzilla modal loading if Bootstrap modal open’ is closed to new replies.