Home Forums WoodMart support forum Promo Popup

Promo Popup

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #518502

    designer
    Participant

    Hi there
    I have enabled the promo popup in theme options, and used an HTML block for the content.

    It is working, however It does not seem to show ‘everytime’ the user visits the home page, but only once.

    I have increased popup version to 10, 100 and various others but it still wont show more than once.

    I would like the popup to show to all users, everytime the home page is visited please, is this possible?

    thank you

    #519127

    Luke Nielsen
    Keymaster

    Hello,

    Please try to use the code below, define it in the fucntions.php file in your child theme.

    add_filter(
    	'woodmart_promo_version_cookie_expires',
    	function() {
    		return 0.1; // Days.
    	}
    );

    https://take.ms/biBqD

    Kind Regards

    #519620

    designer
    Participant

    Hi there
    Thank you so much, this seemed to do the trick, however the popup is now coming up on all pages, and not only the home page – is there a way to limit it to the home page only please? 🙂

    Thank you for the fantastic support =D

    #519754

    Luke Nielsen
    Keymaster

    Hello,

    Unfortunately, it’s working globally and there is no way to apply it for a specific page, sorry.

    I sincerely appreciate your understanding in this matter. Please feel free to reach out to me if you have any further questions.

    Kind Regards

    #519769

    kechweb
    Participant

    Please try this snippet to enabled only in homepage:

    add_filter(
        'woodmart_promo_version_cookie_expires',
        function() {
            if (is_home()) {
                return 0.1; // Days.
            }
            return 0; // Set to 0 to disable on other pages.
        }
    );
    
    #520272

    Luke Nielsen
    Keymaster

    Hello,

    Don’t hesitate to reach out if you have any more questions or concerns. We’re thankful that you took the time to share your concerns with us.

    Have a good day!

    Kind Regards

Viewing 6 posts - 1 through 6 (of 6 total)