Jump to content

Adding a Floating Button for "Contact" visible on mobile only?

Recommended Posts

Here is a blog post that has a CSS code snippet and video tutorial for how to do this on 7.1 templates: https://blog.tawfiq.me/how-to-add-a-button-to-mobile-header-between-logo-and-menu-icon-squarespace/

If you are looking for something a little more robust that lets you add up to 3 visible menu items on mobile devices, I have a plugin available on my website that does just that!

(this is not an affiliate link - I created the plugin myself)

Edited by Caroline_Smith
Link to comment
On 2/11/2022 at 4:46 AM, katelyn.benton said:

Awesome! I added the button to the footer, do you know the code I can use to make it float on mobile only?

Add to Design > Custom CSS

div#block-yui_3_17_2_1_1644529381809_7144 a {
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    z-index: 9999;
	display: none;
}
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1644529381809_7144 a {
    display: block !important;
}
}

 

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
19 hours ago, tuanphan said:

Add to Design > Custom CSS

div#block-yui_3_17_2_1_1644529381809_7144 a {
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    z-index: 9999;
	display: none;
}
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1644529381809_7144 a {
    display: block !important;
}
}

 

Thank you! This worked perfectly.

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.