Jump to content

Text change on page refresh

Recommended Posts

Hello. I hope this request makes sense.

I am looking for the neatest way to implement a piece of code on my homepage to change a section of text every time the page is refreshed.


"My favourite fruit is bananas"

I would like to be able to change bananas to one of a random selection from a list (say apples, oranges, watermelon) each time the page is refreshed.

Any help would be much appreciated.

Link to comment
  • Replies 1
  • Created
  • Last Reply

It is difficult. You can search sample code, eg this code: https://stackoverflow.com/questions/8105226/replace-text-with-on-page-load

(Use Code Block to insert code)


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment


This topic is now archived and is closed to further replies.

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.