INHOUDSOPGAVE
![](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/656600ac15e8fb306ae8447f_TQW0N2GV8-U064G7QV42G-g1e8a2ba916b-512.webp)
Ovidiu
This post will teach you How to Display an Online Indicator on your Webflow Site, what Displaying an Online Indicator on your Webflow Site feature is and when/why you might want to use Displaying an Online Indicator on your Webflow Site in your project.
How to Display an Online Indicator on your Webflow Site
Memberscripts needed
https://www.memberstack.com/scripts/online-indicator
Tutorial
Cloneable
Why/When Would you need to Display an Online Indicator on your Webflow Site?
- Show visitors whether or not your company’s business hours have started and your local time.
If you have a company that potential customers often reach out to for quotes or any other information, you might want to have an online indicator on your site that tells visitors whether your business hours have started.
If, for example, you’re an agency, you can have an online indicator in your site’s footer that shows visitors your local time and a colored indicator telling them whether your business hours have started so they know if they can contact you then or if they have to wait.
Displaying an online indicator on a Webflow site
To display an online indicator on a Webflow site, we’re going to use MemberScript #104 – Online Indicator. 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
The first thing you’ll need to do is create and style your online indicator.
Select your online indicator’s wrapper and add the following attribute to it:
- ms-code-online-wrapper=”TIMEZONE” – the value can be EST, CET, etc.
Now select the actual indicator (e.g. green/red dot) and add the following attribute to it:
- ms-code-online=”dot”
Finally, select the text block where the time will be displayed and add the following attribute to it:
- ms-code-online=”time”
Making it work
Now that you’ve got everything set up, all you need to do is add the MemberScript #104 custom code to your page, before the closing body tag.
Here are a few things you can edit inside the custom code to change the indicator’s appearance:
- Online/offline colors
![A black background with white textDescription automatically generated](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/660442f88d55d529e87eccb1_A80Hv-2uxxfAS97H00LzbpW2dZ8usIeAsb_Rm1Y2EFcFgpd5Zsu4hWIPaTi4_H1IlsFcWgUGOqS_aK7gPkMMSrip7mrGTsdfqYVATYnJIGHQ76TrV4KfhivbllKnD8KNx_lS2aJ-0gdbJ_EfVoBYutA.webp)
- Your business hours/days
![A black background with white textDescription automatically generated](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/660442f8c6b5f29d3ce844e0_GRfYtCAq89NkQURTbp4eKs_z2U26HyptbRfw1QBrlOB2AQIP0pzr1ow8FgEI0igZv6ltwNSnmYiAT3i0kvgXabqqnkpBuWOOWsAIwhcx43vySMNxh1NhqHqHuwGuTSz9xHxd2YBzlqW402ZZiCZr3us.webp)
Conclusie
That’s everything, you can now go ahead and test the online indicator on your live site.
If you want to use our demo project to get you started, just click the button below to add it to your Webflow site.
![](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/660442f82fc730aceb932c8c_PbmFy34RPHU6Q132C9tZ48aWAPzgbJQUOR7F3-cyHZA7Qa2kbopPiJKRvh1_dyMjCXLrqWQZaUtE1RF3DzWyaHxEIEtJ-ZHoLfsw9D_-zF2pBbiUQ85TTl4WpBsDt7IITkNEEZk_-CBLfxeAf9d4BY4.webp)
Our demo can help you easily show your site visitors whether or not your business hours have started.