MiaP Posted February 6, 2023 Posted February 6, 2023 Hello there! I'm trying to add a fixed CTA (Book Now) on the lower right side of my website. Through tutorials I found online, I was able to add the button but my problem is, I can't seem to figure out how I can make the size and positioning the same on desktop and mobile view. Please help. Attached is a sample website which uses fixed CTA. I'm hoping I can replicate this in my website with my brand colors and fonts. Beyondspace 1
Beyondspace Posted February 6, 2023 Posted February 6, 2023 5 hours ago, MiaP said: Hello there! I'm trying to add a fixed CTA (Book Now) on the lower right side of my website. Through tutorials I found online, I was able to add the button but my problem is, I can't seem to figure out how I can make the size and positioning the same on desktop and mobile view. Please help. Attached is a sample website which uses fixed CTA. I'm hoping I can replicate this in my website with my brand colors and fonts. Can you share your URL so I can take a look? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
MiaP Posted February 9, 2023 Author Posted February 9, 2023 Here's the inspo website:https://violetmoonjewelry.com/ We just want the "Book Now" button that they have. Our website is here:https://www.hallowedground.la/
Solution paul2009 Posted February 9, 2023 Solution Posted February 9, 2023 On 2/6/2023 at 9:56 AM, MiaP said: I'm trying to add a fixed CTA (Book Now) on the lower right side of my website. Try adding this to Settings > Advanced > Code Injection > FOOTER:, changing /classes to match the URL that you want to reach: <div id="btnFloatBook"> <a style="position: fixed; z-index: 100; bottom: 1em; right: 1em; padding: 1em 2em; box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px;" href="/classes" class="sqs-block-button-element--medium sqs-button-element--primary sqs-block-button-element">Book Now</a> </div> Screenshot when added: Did this help? Please give feedback by clicking an icon below ⬇️ Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
ashleylee Posted July 25, 2023 Posted July 25, 2023 On 2/9/2023 at 4:47 AM, paul2009 said: Try adding this to Settings > Advanced > Code Injection > FOOTER:, changing /classes to match the URL that you want to reach: <div id="btnFloatBook"> <a style="position: fixed; z-index: 100; bottom: 1em; right: 1em; padding: 1em 2em; box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px;" href="/classes" class="sqs-block-button-element--medium sqs-button-element--primary sqs-block-button-element">Book Now</a> </div> Screenshot when added: Did this help? Please give feedback by clicking an icon below ⬇️ Do you know how to link that CTA button to a phone number or a page as well?
paul2009 Posted July 25, 2023 Posted July 25, 2023 14 minutes ago, ashleylee said: Do you know how to link that CTA button to a phone number or a page as well? The solution I provided above links to the classes page because of this: href="/classes" You can link to any other page by changing this URL. To link to a phone number, you'll use href attribute tel: like this: href="tel:+1234567890" Did this help? Please give feedback by clicking an icon below ⬇️ ashleylee 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment