Home › Forums › WoodMart support forum › Promo Popup
Promo Popup
- This topic has 5 replies, 3 voices, and was last updated 1 year, 11 months ago by
Luke Nielsen.
-
AuthorPosts
-
December 5, 2023 at 8:28 am #518502
designerParticipantHi 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
December 6, 2023 at 4:33 pm #519127
Luke NielsenMemberHello,
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. } );Kind Regards
December 8, 2023 at 7:53 am #519620
designerParticipantHi 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
December 8, 2023 at 1:34 pm #519754
Luke NielsenMemberHello,
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
December 8, 2023 at 2:13 pm #519769
kechwebParticipantPlease 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. } );December 11, 2023 at 10:46 am #520272
Luke NielsenMemberHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register
