bcdiver Posted February 2 Share Posted February 2 (edited) 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 February 2 by bcdiver Link to comment
Solution paul2009 Posted February 2 Solution Share Posted February 2 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
bcdiver Posted February 2 Author Share Posted February 2 (edited) Ok, thanks for having a look and sharing your guide. I've re-added it as a code block and it's now working 👍 Edited February 2 by bcdiver Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment