Jump to content

Adding multiple social Icons to link various profiles

Recommended Posts

  • 1 year later...

Hi there! This is the code I used that worked on my website. Does anyone know what I should add to it in order to have the social links open in a new tab? Thanks

<ul class="t-social">
<li>
  <a href="#">
  <i class="fa fa-instagram"></i>
  </a>
</li>
</ul>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
  /* code block padding top bottom */
  .code-block {
    padding-top: 0;
    padding-bottom: 0;
}
  /* social icons code */
.t-social {
    display: block;
    margin: 0 auto;
    padding-top: 5px;
    text-align: center;
      padding-left: 0;
}
  .t-social li {
  display: inline-block;
    margin: 0;
    line-height: 100%!important;
  }
  .t-social .fa {
    font-size: 36px;
    margin: 0 8px;
    color: ##000000;
}
  .t-social .fa:hover {color:#B5DEEE;}
</style>

Link to comment
On 8/18/2021 at 11:13 AM, ansleyrobinson said:

Hi there! This is the code I used that worked on my website. Does anyone know what I should add to it in order to have the social links open in a new tab? Thanks

<ul class="t-social">
<li>
  <a href="#">
  <i class="fa fa-instagram"></i>
  </a>
</li>
</ul>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
  /* code block padding top bottom */
  .code-block {
    padding-top: 0;
    padding-bottom: 0;
}
  /* social icons code */
.t-social {
    display: block;
    margin: 0 auto;
    padding-top: 5px;
    text-align: center;
      padding-left: 0;
}
  .t-social li {
  display: inline-block;
    margin: 0;
    line-height: 100%!important;
  }
  .t-social .fa {
    font-size: 36px;
    margin: 0 8px;
    color: ##000000;
}
  .t-social .fa:hover {color:#B5DEEE;}
</style>

Hi, edit this line

Quote

<a href="#">

to this

Quote

<a href="#" target="_blank">

 

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

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.