timed content

At times, clients want to keep their website content 'fresh' by changing the text and content daily.  This is most especially important when the same visitors return to the website on a daily basis.  This tutorial will give you some ideas on how to accomplish this without having to edit content every day.

" This tutorial (example) page was inspired by a YouTube fan and member of the Totally Codable community group."

The question . . .

" How can I automatically display a different sentence on my home page for different days?  When a person visits the web page, I want them to see a different quote.  I don't want to manually type it every day.  I can't use Wix Slideshows because their timers are only for 'seconds' not 'hours' or 'days'.  How can I achieve this? "

Let's analyze . . .

A customized Timed Content code will help reach their goal.  What is timed content?  Timed Content plugins are very popular across many website builder platforms.  These apps and functionalities are known by many names, such as:

Timed content modules are very popular because they make it easy for a website owner to automatically show, hide or alternate content after a given time. 

3 Creative solutions . . .

This tutorial example page is displaying 3 different 'timed content' methods that could possibly satisfy the question mentioned above.  In Method #1, we will create a code that displays a different quote depending on what day of the month it is (day 1, day 2, etc).  In Method #2, we will create a code that will randomly select a quote from a database collection each time a person loads or refreshes a page.  And finally, in Method #3, we will create a code that will display a different quote depending on what time of day it is!

Scroll down to view each different solution we created.  Or if you are ready for another tutorial, click the button below to search for a different article or code.

 

 Method #1 

 ↡ 

 

Few are those who see with their own eyes and feel with their own hearts.

Creative Solution #1

 

The quote in the green column will change depending on what day of the month it is

For example, if today is the 6th day of the month, then announcement #6 will be displayed in the green column above.  Don't believe me?  Come back tomorrow and check out the quote again.  Here is the full list of announcements in our database for 31 days:

  • Few are those who see with their own eyes and feel with their own hearts.  (Day 1 - Einstein)

  • Imagination is more important than knowledge.  Knowledge is limited.  (Day 2 - Einstein)

  • Try not to become a man of success, but rather try to become a man of value.  (Day 3 - Einstein)

  • The important thing is to not stop questioning.  Curiosity has its own reason for existing.  (Day 4 - Einstein)

  • Life is like riding a bicycle.  To keep your balance you must keep moving.  (Day 5 - Einstein)

  • I have no special talent. I am only passionately curious.  (Day 6 - Einstein)

  • Logic will get you from A to Z, Imagination will get you everywhere.  (Day 7 - Einstein)

  • Anyone who has never made a mistake has never tried anything new.  (Day 8 - Einstein)

  • Never memorize something that you can look up.  (Day 9 - Einstein)

  • A clever person solves a problem.  A wise person avoids it.  (Day 10 - Einstein)

  • If we knew what we were doing, it would not be called research, would it?  (Day 11 - Einstein)

  • Any fool can know.  The point is to understand.  (Day 12 - Einstein)

  • You never fail until you stop trying.  (Day 13 - Einstein)

  • Science can only flourish in an atmosphere of free speech.  (Day 14 - Einstein)

  • The measure of intelligence is the ability to change.  (Day 15 - Einstein)

  • Creativity is intelligence having fun.  (Day 16 - Einstein)

  • Everything must be made as simple as possible.  But not simpler.  (Day 17 - Einstein)

  • What is right is not always popular and what is popular is not always right.  (Day 18 - Einstein)

  • I must be willing to give up what I am in order to become what I will be.  (Day 19 - Einstein)

  • Genius is 1 percent talent and 99 percent hard work.  (Day 20 - Einstein)

  • Once we accept our limits, we go beyond them.  (Day 21 - Einstein)

  • If you want to live a happy life, tie it to a goal, not to people or things.  (Day 22 - Einstein)

  • Imagination is the highest form of research.  (Day 23 - Einstein)

  • Wisdom is not a product of schooling but of a lifelong attempt to acquire it.  (Day 24 - Einstein)

  • We cannot solve our problems with the same level of thinking that created them.  (Day 25 - Einstein)

  • Information is not knowledge.  (Day 26 - Einstein)

  • The more I learn, the more I realize how much I don't know.  (Day 27 - Einstein)

  • The only source of knowledge is experience.  (Day 28 - Einstein)

  • Learning is experience.  Everything else is just information.  (Day 29 - Einstein)

  • Excellence is doing a common thing in an uncommon way.  (Day 30 - Einstein)

  • If you can't explain it simply, you don't understand it well enough.  (Day 31 - Einstein)

About Method #1 . . .

 

 Method #2 

 ↡ 

Creative Solution #2

 

The quote in the green column will change at random when the page is loaded or refreshed.

The measure of intelligence is the ability to change.

 

 Method #3 

 ↡ 

Few are those who see with their own eyes and feel with their own hearts.

Creative Solution #3

 

The quote in the blue column will change depending what time of day it is.

For example, if the current time is 21:48 then announcement #21 will be displayed in the blue column above.  Don't believe me?  Return to this page within the hour and check out the quote again.  Here is the full list of announcements in our database for the 24 hours:

  • Few are those who see with their own eyes and feel with their own hearts.  (1:00 - Einstein)

  • Imagination is more important than knowledge.  Knowledge is limited.  (2:00 - Einstein)

  • Try not to become a man of success, but rather try to become a man of value.  (3:00 - Einstein)

  • The important thing is to not stop questioning.  Curiosity has its own reason for existing.  (4:00 - Einstein)

  • Life is like riding a bicycle.  To keep your balance you must keep moving.  (5:00 - Einstein)

  • I have no special talent. I am only passionately curious.  (6:00 - Einstein)

  • Logic will get you from A to Z, Imagination will get you everywhere.  (7:00 - Einstein)

  • Anyone who has never made a mistake has never tried anything new.  (8:00 - Einstein)

  • Never memorize something that you can look up.  (9:00 - Einstein)

  • A clever person solves a problem.  A wise person avoids it.  (10:00 - Einstein)

  • If we knew what we were doing, it would not be called research, would it?  (11:00 - Einstein)

  • Any fool can know.  The point is to understand.  (12:00 - Einstein)

  • You never fail until you stop trying.  (13:00 - Einstein)

  • Science can only flourish in an atmosphere of free speech.  (14:00 - Einstein)

  • The measure of intelligence is the ability to change.  (15:00 - Einstein)

  • Creativity is intelligence having fun.  (16:00 - Einstein)

  • Everything must be made as simple as possible.  But not simpler.  (17:00 - Einstein)

  • What is right is not always popular and what is popular is not always right.  (18:00 - Einstein)

  • I must be willing to give up what I am in order to become what I will be.  (19:00 - Einstein)

  • The more I learn, the more I realize how much I don't know.  (20:00 - Einstein)

  • The only source of knowledge is experience.  (21:00 - Einstein)

  • Learning is experience.  Everything else is just information.  (22:00 - Einstein)

  • Excellence is doing a common thing in an uncommon way.  (23:00 - Einstein)

  • If you can't explain it simply, you don't understand it well enough.  (24:00 - Einstein)

About Method #3 . . .

need creative help with your project?

  • Code Queen Facebook Group Icon
  • Facebook Logo
  • Twitter Logo
  • YouTube logo
  • Instagram Logo
  • Linkedin Logo

corvid support

© 2019.  All Rights Reserved by Code Queen, LLC.