Jump to content

Social header icon placement in 7.1 - Help please

Recommended Posts

  • Replies 7
  • Views 1.2k
  • Created
  • Last Reply
  • 2 months later...

@plantshop203

Add the following to Design > Custom CSS.

/* begin arrange elements for moving social icons after navigation */

  .header-layout-branding-center .header-nav .header-nav-item {
  
    margin-right : 1.5vw;
    
    }
    
  .header-nav-wrapper {
  
    align-items : center;
    display : flex;
    
    }
    
  /* end arrange elements for moving social icons after navigation */

Add the following to Settings > Advanced > Code Injection > FOOTER.

<script>

  $( ( ) => {
  
    /*
    
      move social icons after navigation for v7.1 site using navigation, logo,
      cta inline header layout
      
      SS version: 7.1
      
      */
      
    $( '.header-display-desktop .header-actions-action--social' )
    
      .appendTo ( '.header-display-desktop .header-nav-wrapper' );
      
    } );
    
  </script>

This is for a v7.1 site.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
12 hours ago, creedon said:

@plantshop203

Add the following to Design > Custom CSS.


.header-actions-action--social {

  display : inline-flex;
  margin-left : 1vw;
  
  }

Add the following to Settings > Advanced > Code Injection > FOOTER.


<script>

  $( ( ) => {
  
    /*
    
      move social icons after navigation for v7.1 site using navigation, logo,
      cta inline header layout
      
      SS version: 7.1
      
      */
      
    $( '.header-display-desktop .header-actions-action--social' )
    
      .appendTo ( '.header-display-desktop .header-nav-wrapper' );
      
    } );
    
  </script>

This is for a v7.2 site.

Let us know how it goes.

THANK YOU. This works great. I'm now wondering... how can I change the top padding of the new placement of the IG icon? It's sitting just a little above the nav items.

I tried this:

.header-actions-action--social {
  display : inline-flex;
  margin-left : 23px!important;
  padding-top: 3px!important;
  }

but it changes the padding of all three of those items, not just the IG icon.

 

Screen Shot 2021-02-14 at 12.37.48 PM.png

Link to comment

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.