Jump to content

Floating button only visible after reload (sometimes)

Go to solution Solved by paul2009,

Recommended Posts

Hi all,

I've created a floating button using HTML and CSS copied and then adjusted (to fit our website theme) from a blog. It seems to work fine except when the page is accessed from our home page.

If you go:  https://www.rowandsreef.com/ > Courses > Enriched Air Diver Specialty - the floating button doesn't appear straight away. If you then refresh the page it appears.

If you access the page via a direct link https://www.rowandsreef.com/enriched-air then the button appears straight away. 

Was just wondering if anyone could help me understand why this is happening and how to fix it so the button appears straight away, no matter the route taken to get to the page.

Thanks

Edited by bcdiver
Link to comment
  • Replies 2
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution
2 hours ago, bcdiver said:

I've created a floating button using [code]. If you...refresh the page it appears.

This is because your code hasn't been written to work with the Ajax Page Loading that is enabled on the Squarespace 7.0 Brine-based website. Code loaded in the header or footer isn't reloaded when you move between pages unless you disable this feature. Please see my guide here: Why does Squarespace code only work on refresh?

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.