Jump to content

Issues with the cart icon sitting outside of the content

Recommended Posts

Hi all!

I was hoping someone could help me fix this. On our site, the cart icon seems to be sitting outside of the main content on the site.


I also tried adding a button and that was even further off to the right. I tried inspecting the code to see if there was anything obvious I could change in the styles but didn't see anything. Anyone have an idea on how to fix? 

I'll also note it seems to be just this particular header style (where it's centered) if I swap it then the cart appears where it should. 


Edited by sweetchickflorals
Link to comment
  • Replies 2
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

It looks like your website has custom coding that extends the width of the logo and navigation away from the default of 67% (in this configuration) to 100%. I can understand why this was changed with code, it allows the navigation to all sit nicely on one line, but the unintended consequence is that the elements that were supposed to fit into the 33% now extend off the side of the screen.

This is what that custom code looks like:

.header-layout-branding-center-nav-center .header-title-nav-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 0 0 100%;
    justify-content: center;
    align-content: center;
    margin-left: auto;

If you reduce the 100% to maybe 85% it may keep the cart on the page.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.