Add

Lorem ipsum

Lorem ipsum

A
A
A
Easter egg

3 views

2 min

How to Show a Different Message Depending on the Day of the Week in Webflow

Learn how to display a different message based on the day of the week in Webflow with JavaScript.

In this tutorial, Sandro, co-founder of Gemeos Webflow agency, shows you how to display a different message depending on the day of the week in Webflow.

Example

Message based on the current day

Loading...

DayExample message
Monday'💪 The week is starting, let’s go!'
Friday'🎉 Happy Friday!'
Weekend'☀️ Enjoy your Saturday'

1. Add the ID to your text

On your Text Block: custom attribute id = day-message.

2. Add the script in Footer code

(function() {
var messages = [
'🌙 Enjoy your Sunday', '💪 The week is starting, let’s go!',
'🚀 Happy Tuesday', '⚡ Midweek, keep going',
'🙌 Almost the weekend!', '🎉 Happy Friday!', '☀️ Enjoy your Saturday'
];
var el = document.getElementById('day-message');
if (el) el.textContent = messages[new Date().getDay()];
})();

good to know

See also our tutorial text that changes based on the time of day to combine both approaches.

Conclusion

A small detail that shows your site is alive. Especially effective on SaaS homepages and portfolios.

Good to know

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet consectetur.

Lorem ipsum dolor sit amet consectetur. Aliquam orci sagittis dignissim sapien praesent donec.

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Published on

You might be interested in these tutorials

Similar tutorials

SEO / GEO

5 min read

5 views

How to Set Up a Redirect in Webflow? (2026)

Updated on 19.12.2025 by Sandro DA SILVA

SEO / GEO

5 min read

5 views

Add structured data to your Webflow site?

Updated on 21.08.2025 by Sandro DA SILVA

No-code

5 min read

5 views

How to Obfuscate a Link in Webflow

Updated on 23.04.2025 by Sandro DA SILVA

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...