Jump to content

Right Align Links on Navigation Bar

Recommended Posts

  • Replies 1
  • Views 389
  • Created
  • Last Reply
Posted
On 10/22/2021 at 7:53 AM, dimensionuh said:

Site URL: https://www.dimensionuh.com/

Hi there!

I am trying to move my navigation links "explore" and "adventures" to the right of the logo, next to the "login" link, and was wondering if someone could help me with the css for this.

1436036156_Screenshot2021-10-22at8_50_12AM.thumb.png.6e6daee2e3cd26492804b9695cf83a25.png

Appreciate the help. Thank you!

Add to Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
  jQuery(document).ready(function($){
  $('.header-display-desktop nav.header-nav-list').clone().insertBefore('.header-display-desktop .header-actions--right .customerAccountLoginDesktop');
})
</script>
<style>
  .header-nav .header-nav-item:nth-child(n+3) {
    display: none;
}
  .header-actions.header-actions--right .header-nav-list .header-nav-item:nth-child(-n+2) {
    display: none;
}
  .header-actions.header-actions--right .header-nav-list .header-nav-item a {
    color: #000 !important;
    margin-right: 2.5vw;
}
</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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.