Jump to content

Small issue with custom code for header. Any help is appreciated!

Recommended Posts

Site URL: https://www.nickdavid.co.uk/


I am having an issue with a custom code. This code is supposed to give me the option to add social icons to the top main navigation bar. 

The code works well, but with one issue when making the icons open in a new tab.  When navigating back to the original Site, the clicked icon is marked with a dotted squared. It disappears again when clicking on other parts of the site. But would like to know if there are any way to remove. 

I have attached images for example!

Here is the code that is injected in the header: 

<meta name="google-site-verification" content="MZTF-OSAD1RlW6uiJLGfumxXTi6w2gYs9P-qMLsaoAY" />

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

Here is the code used to make the social icons and make them open in a new tab. This is added directly as the main navigation link. 

<i class="fab fa-linkedin fa-lg"></i>

Thank you for your help!

Screen Shot 2021-03-02 at 09.35.47.png

Screen Shot 2021-03-02 at 09.35.32.png

Edited by ontodont
Link to comment
  • 2 weeks later...
On 3/9/2021 at 9:03 PM, ontodont said:

Thank you tuanphan. That worked great! Really good idea. 


I see some pages have very long content on mobile. You should consider adding a back to top button

Also, do you want to place 3 icons on same line on mobile menu?


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.