Jump to content

Position Logo in the Middle of the Navigation in Margot Template

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution
Posted

Add this to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
  $(document).ready(function() { 
		$('nav.Header-nav--primary').clone().insertBefore('[data-nc-container="top-left"]');
	});
</script>
<style>
  div.Header-inner>nav:first-child>div>a:nth-child(n+5) {
    display: none !important;
}
  [data-nc-container="top-center"] nav a:nth-child(-n+4) {
    display: none;
}
</style>
        

 

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!)

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.