Greet Visitors Based On The Timing Of Where They Live In

cr: Shmerler Eli

Sometimes, you want to greet your website visitors "Good morning" at the correct times, to make them feel welcomed and at home. Well, you can do that on Webflow with a little custom code

So let's say you want your text to read “Goodmorning” when the time is before 12 pm. And then make the text say “Good afternoon” after 12:00pm but before 5:00 pm. These rules can be set by the below code script

Place an embed component. Paste in the script. Add a text span to the text where the greeting will be. Give it an ID of <li-powerful>lblGreetings<li-powerful>. That's it. Publish it and you can see it update dynamically based on the time of the day :)

Custom code library to add powerful and special touches to your Webflow site
No items found.
Webflow custom code library

Webflow - Code to the Rescue

The Webflow Library for custom code snippets that unlocks powerful possibilities in Webflow. Includes hand-picked and tested custom code that you can use in Webflow Projects.

Open Library

Need further help?

Need further help in understanding the resources or how to implement them? Feel free to reach out

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Ali Saeed Graphic Designer Kuwait

About Ali Saeed

Ali Saeed is a Kuwait-based web designer and Webflow developer who has been working as a graphic designer for 4 years, building social brands, company profiles, and presentations. He recently jumped into web design and development. As a web designer, Ali focuses on clarity in design layout and messaging strategy. In his free time, he loves to help the web community, solve problems, and build resources for web designers who want to optimize their websites using Webflow.

Send an email if you'd like to collaborate :)
View his portfolio website