Voeg in enkele minuten lidmaatschappen toe aan uw Webflow-project.
Meer dan 200 gratis kloonbare Webflow componenten. Aanmelden is niet nodig.
Voeg in enkele minuten lidmaatschappen toe aan uw React-project.
How to Force iOS Emojis to Display on your Site for all Devices
Ledenafschriften nodig
https://www.memberstack.com/scripts/77-universal-emojis
Les
Kloonbaar
Why/When would need to Force iOS Emojis to Display on your Site for all Devices?
- Ensure a consistent emoji experience for all your visitors.
If you’re planning to use emojis on your site, it’s a good idea to ensure consistency between devices. This means making sure that everyone sees the same emojis.
Below, we’re going to take a look at how exactly you can achieve that without any hassle. You’ll be able to use any emoji set you want from emojipedia.org, or even your own custom emojis.
Forcing iOS emojis on all devices in Webflow
To force iOS emojis or any other emoji set to display on a Webflow site regardless of device, we’re going to use MemberScript #77 – Universal Emojis. 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
To get started, add text blocks wherever you want your emojis to show up and just write a random letter inside them – don’t worry, it’ll just get replaced with your emoji of choice.
Next, select each text block and add the following attribute to them:
- ms-code-emoji=”URL”
For the value, all you need to do is go to emojipedia.org, pick the emoji you want, and just right click it, copy the image URL, and paste it as the attribute value.
Keep in mind that not all emojis are open-source, so use them at your own risk.
Het laten werken
Now that you’ve picked the emojis you want and added the required attributes attributes, all you need to do is add the MemberScript #77 custom code to your page, before the closing body tag.
You might notice that some emojis are a bit misaligned with the text surrounding them, so in this case you might want to edit the styling of the text block housing the emoji to make sure it looks alright on your site.
Conclusie
That’s everything, you can now go ahead and test the emojis you’ve placed on your site.
Als u ons demoproject wilt gebruiken om u op weg te helpen, klikt u op de knop hieronder om het aan uw Webflow site toe te voegen.
Our demo can help you use any emojis you want on your Webflow site.