Jump to content

Move cart next to burger in mobile view

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Add to Last Line in Code Injection > Footer

<script>
  jQuery(document).ready(function($){
if (jQuery(window).width() < 640) {
		$('a.Cart.sqs-custom-cart.sqs-template-integrated-shopping-cart').appendTo('.mobile-bar-wrapper');
	}
});
</script>
<style>
  label.mobile-nav-toggle-label+a {
    display: none;
}
</style>

then check on real mobile

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

Thanks for the feedback, this is what I got, please see attached.

Also, since we are on the topic how do I target the "0" to style it? I want to make it smaller and align it to the top of the cart. Also the red circle around 0 is missing now. 

Thank you so much,

A

IMG_5396.jpg

Edited by ANDREY_DANILOV
Link to comment
  • Solution

Add this code under

<style>
  @media screen and (max-width:640px) {
svg.Icon--cart use.use--even {
    fill: #aaa;
    stroke: #aaa;
}
  span.sqs-cart-quantity {
    font-size: 30px;
    color: red;
    }}
</style>

image.png.80676604bed596e6a545c4ce15bc87bb.png

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

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.