Jump to content

Adding CTA Button on Mobile Header in top right hand corner.

Go to solution Solved by tuanphan,

Recommended Posts

Hey, new here! 👋 I've been using squarespace for awhile and just heard about this community. 

I'm looking for code suggestions that would show the website header button on the mobile header. I am attaching two screenshots showing the web version & mobile version. I would like the "SHOP" button to appear in the type right of the mobile header. 

Has anybody figured this out? Super appreciative of any responses or feedback, thanks! 

Web.png

Mobile.png

Link to comment
22 hours ago, SawyerRoyall said:

Hey, new here! 👋 I've been using squarespace for awhile and just heard about this community. 

I'm looking for code suggestions that would show the website header button on the mobile header. I am attaching two screenshots showing the web version & mobile version. I would like the "SHOP" button to appear in the type right of the mobile header. 

Has anybody figured this out? Super appreciative of any responses or feedback, thanks! 

Web.png

Mobile.png

Can you share your URL so I can check it?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 5/27/2024 at 3:45 AM, SawyerRoyall said:

You can use this to Website > Website Tools > Custom CSS

/* Show button next to burger on mobile */
@media screen and (max-width:991px) {
  .header-actions.header-actions--right, .header-actions-action.header-actions-action--cta {
    display: flex !important;
}
.header-title-nav-wrapper {
    flex: 1 0 30% !important;
}
a.btn {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 14px !important;
}}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 5/28/2024 at 4:15 AM, tuanphan said:

You can use this to Website > Website Tools > Custom CSS

/* Show button next to burger on mobile */
@media screen and (max-width:991px) {
  .header-actions.header-actions--right, .header-actions-action.header-actions-action--cta {
    display: flex !important;
}
.header-title-nav-wrapper {
    flex: 1 0 30% !important;
}
a.btn {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 14px !important;
}}

 

Woah! Thank you so much. 

I attached a screenshot of what it looks like. Is there a way I can get the burger on the left, logo in the center and CTA button on the right.

Also, is there a way I can mess with the sizing of the button? It looks like a circle more than a button. Thanks, btw this is super helpful! 

 

Image.png

Link to comment
  • Solution
On 5/29/2024 at 7:10 PM, SawyerRoyall said:

@tuanphan I updated the button copy to "get quote" and the button looks better on mobile. If there's a way I could get the structure of Burger | Logo | Button (from left to right) that'd be awesome! 

You can use this code to Custom CSS box

div.header-display-mobile .header-burger {
    order: 1 !important;
}
div.header-display-mobile .header-title-nav-wrapper {
    order: 2 !important;
}
div.header-display-mobile .header-actions {
    order: 3 !important;
}

image.png.8ff488663c09d516e3e5e98275ef7123.png

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.