Jump to content

How do I add social icons to my main navigation?

Recommended Posts

  • Replies 7
  • Views 18.6k
  • Created
  • Last Reply

Step 1. Select an icon and find the icon code from here:

http://fortawesome.github.io/Font-Awesome/icons/

Step 2. Add a Link to your navigation and make the Link Title the icon code.

As an EXAMPLE, paste in

<i class="fa-facebook"></i>

as your Link Title for that Facebook icon.

Then, add your social profile URL to the 'External' tab of the link settings.

Step 3. Add this exact code to your site's Home menu > Settings > Advanced > Code Injection > Header and Footer fields.

HEADER:


<!----Font.awesome--->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">


FOOTER:


<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">


Step 4. Your new social icon should appear via the link in your site's navigation menu.

Link to comment
  • 1 year later...
  • 3 months later...
  • 4 weeks later...

@markdekoning

To Make Larger Icons

To increase icon sizes relative to their container, use the fa-lg (33% increase), fa-2x, fa-3x, fa-4x, or fa-5x classes. (You will make this change in the Link Title)

fa-lg fa-2x fa-3x fa-4x fa-5x

If your icons are getting chopped off on top and bottom, make sure you have sufficient line-height.

Link to comment
  • 2 months later...

Hi guys,

I was having problems with this, but then found that replacing the header code (found here https://fontawesome.com/get-started) works well:

<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>

You will also need to remove the footer code mentioned above.

Link to comment
  • 1 year later...
On 5/9/2016 at 3:15 PM, crc2pdx said:

 

Hi,

For some reason this isn't working for me. I get a generic scrambled unknown icon in place of the social icons. I have used your exact HTML and header/footer code injections and this is what I see. Help?

TIA!

Screen Shot 2020-02-13 at 10.43.06 AM.png

Link to comment
  • 2 weeks later...
On 2/14/2020 at 1:43 AM, emalu said:

Hi,

For some reason this isn't working for me. I get a generic scrambled unknown icon in place of the social icons. I have used your exact HTML and header/footer code injections and this is what I see. Help?

TIA!

Screen Shot 2020-02-13 at 10.43.06 AM.png

Try this guide: https://forum.squarespace.com/topic/157427-share-add-social-icons-to-navigation/

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.