Jump to content

Position Logo in the Middle of the Navigation in Margot Template

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.thearticulatefly.com/home-2022

Hello,

My client wants to have his logo in the middle of the navigation links where he has 4 links on each side of the logo.

Here's the site: https://www.thearticulatefly.com/home-2022

Currently it looks like I can not position or center the logo in-between the links.

Is there a code I can inject to resolve this?

Thank you,
Chris

 

 

Link to comment
  • Solution

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

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.