Jump to content

Kent Template - code to move the social icons from footer to navigation at top

Recommended Posts

  • Replies 3
  • Views 585
  • Created
  • Last Reply

Hello,

 I'll do my best to explain these steps but doing this is harder than it should be for some templates. To start, you'll want to navigate to your "Code Injection". Settings > Advanced > Code Injection.

In the Header injection box, add :

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">

After, click save and navigate back to "Home". 

Click "Pages" and under "Secondary Navigation" click to add a page "+" and select "Links". For the "Link Title" you'll want to use the icon code for each social icon from the Font Awesome icon library we installed in the code-injection. I'll attach a link where you can search for more icons too. 

Each Icon will be a separate "page". 

For Instagram, add this to the Link Title box: 

<i class="fab fa-instagram"></i>

For Pinterest, add this to the Link Title box

<i class="fab fa-pinterest"></i> 

You'll only need to install the Code-Injection once. But you'll have to repeat the Secondary Navigation "Add Page/Link" steps for each icon.

After, you've added the icon code to the Title box, in the link field. you'll want to add the URL for each of the social media accounts you want the icon to direct users too. 

Additionally, If you click the gear symbol next to the "Link" field, you'll find an option where you can have the link open in a new window and a few other options too. 

Hope this helps! 

Link to comment
  • 2 weeks later...
On 3/8/2021 at 6:46 AM, jcapozzola said:

Thank you @Wolfsilon!!

It looks like navigation items - instagram is not align. It's just one pixel, which doesn't really matter. However if you want to fix this, You can add this to Design > Custom CSS

/* Align nav items - instagram */
.canvas-style-normal #topNav nav>ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

 

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

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.