Jump to content

No menu items: how do I only show the CTA button on mobile?

Recommended Posts

The site I'm building in 7.1 has no header nav items. It is only a logo and a call to action (CTA) button.

On mobile, the hamburger menu leads to a blank menu with only the CTA button at the bottom. It doesn't match my color scheme.

I want to get rid of the menu on mobile entirely. I want it to look like:

[Logo]                   [CTA button]

and not:

[Logo]                   [=]

with the = (the ugly hamburger menu) leading to a blank white non-matching menu with an easy-to-miss button at the bottom.

I should be able to do this using built-in customization and without code, and if I can't, Squarespace that's a terrible look. What's the fix here?

Link to comment
  • Replies 8
  • Views 2.6k
  • Created
  • Last Reply
  • 2 weeks later...
On 7/7/2020 at 2:46 AM, knockout said:

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
/* remove burger */
.header-burger {
    display: none;
}
/* show button */
.header-actions {
    display: block !important;
}
.header .header-actions-action--cta {
    display: block;
}
/* logo width */
.header-title-nav-wrapper {
    flex: 50% !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
  • 2 weeks later...
20 hours ago, jlama said:

Im looking to also keep the mobile view without hamburger menu but with a CTA button. This code only worked to remove the hamburger menu...any ideas?

 

Can you share link to your site? We can check easier.

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

Archived

This topic is now archived and is closed to further replies.


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