Ovidiu
How to create a one-time discount offer in Webflow
Les registres des membres sont nécessaires
https://www.memberstack.com/scripts/show-element-once
Tutoriel
Clonable
Pourquoi/Cas d'utilisation
- Show modals, disclaimers, discount offers and more only on a user’s first visit to a page.
Creating a one-time discount offer on a Webflow site
Whether it’s a disclaimer, an informational pop-up, a discount offer or anything else, some things you might want to only display to users once.
This guide will help you add elements to your page that will disappear on a second visit.
To create a one-time discount offer on your Webflow site, we’re going to use MemberScript #128 – Hide Elements after They’ve Been Seen. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.
Setting it up
Begin by creating and styling the element you want to hide on future visits and add the following attribute to it:
· ms-code-show-once=”WhateverYouWant”
Finally, all you have to do is set it to display:none.
Making it work
Now that you’ve got everything set up in Webflow, all you need to do is add the MemberScript #128 custom code to your page, before the closing body tag.
Keep in mind that the code will make the element you added display as a block when it’s visible.
Conclusion
That’s everything, you can now go ahead and test the disappearing element on your live site.
Si vous souhaitez utiliser notre projet de démonstration pour commencer, cliquez simplement sur le bouton ci-dessous pour l'ajouter à votre site Webflow.
Our demo can help you add elements to your Webflow site that will disappear on a second visit.
Take me to Cloneable!
Ajoutez des adhésions à votre projet Webflow en quelques minutes.
Plus de 200 composants Webflow clonables gratuits. Aucune inscription n'est nécessaire.
Ajoutez des adhésions à votre projet React en quelques minutes.