Jump to content

Adding the cart to the main navigation

Go to solution Solved by tuanphan,

Recommended Posts

Hi there.

 

I'm trying to put my cart (styled as text) in the same position as the navigation  but I can't seem to do it.

 

I can put it all in the same line if I set the Center Layour a as horizontal instead of stacked, which is of course something I don't want to do.

The site is live: https://www.lostreseditores.org

 

Thanks in advance!

 

 

Screenshot 2023-01-31 at 16.18.53.png

Edited by librerias
Link to comment
  • Solution

Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
  $(document).ready(function() { 
		$('header#header .cart-wrapper').appendTo('nav.site-navigation');
	});
</script>

image.thumb.png.2f9bf24523d62d3beafa5f7b58741b83.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
On 2/3/2023 at 10:53 PM, librerias said:

Update:

It seemed to work at first, but after clicking on another page, it seems to go back underneath insted of mantining its position. Any clues?

 

 

 

 

Screenshot 2023-02-03 at 16.52.04.png

Design > Site Styles > Disable Ajax Loading

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.