Adding JS code to make the popup appear when clicking at selected element

Modified on Fri, 17 Mar, 2017 at 12:22 PM

Here is the JS code, which would allow you to make the popup apper when you click at selected element, not only on "Add to Cart" button:


<script>
jQuery('body').on('click', '#yourIDbutton', function() {
    jQuery('.festi-cart-pop-up-header').css('display', 'none'); /* Hides the header text */
    jQuery('#festi-cart-pop-up-content').bPopup({
        modalClose: true,
        positionStyle: 'absolute'
    });
    return false;
});
</script>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article