Jump to content

How to add multiple social links

Recommended Posts

Posted

Hello!)
I have a question how to add 2 types of links per section? I have a trouble when I add them, bc I can use just the same social links on icons.
Can you help me please?

Posted
On 2/3/2024 at 6:31 AM, Alla7 said:

Thank you,
Here is the website URL:
https://fuchsia-circle-s8mg.squarespace.com/config/pages

I have here 2 the same social links, but I need to add for other team member links:
Instagram
Tik Tok
Website
YouTube
Email

 

Screenshot 2024-02-02 at 4.31.41 PM.png

What is password?

image.png.ed65de39ec670c120f07a2cea782fd8a.png

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!)

Posted

You can add a Code Block in Tyler Stalman > Paste this code

 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  <ul class="t-social">
    <!-- instagram -->
    <li>
  <a href="https://instagram.com">
  <i class="fab fa-instagram"></i>
  </a>
</li>
    <!-- Youtube -->
     <li>
  <a href="https://youtube.com">
 <i class="fab fa-youtube"></i>
  </a>
</li>
    <!-- Twitter -->
<li>
  <a href="https://twitter.com">
 <i class="fab fa-twitter"></i>
  </a>
</li>
    <!-- Tiktok -->
<li>
  <a href="https://tiktok.com">
  <i class="fab fa-tiktok"></i>
  </a>
</li>
</ul>
<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 li i {
    font-size: 30px;
    margin: 0 20px;
    color: white;
}
</style>

Replace example Instagram, Tiktok, Twitter... with your new url

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!)

Posted

Thank you so much!
May I just double check - is it possible to add or change links with this code?
If I`d like to add link to personal website, Pinterest, email or something else...

  • 7 months later...
Posted
On 10/5/2024 at 4:02 AM, nb1212 said:

thanks for the code! I want the linked website to open in a new tab, how do I change this in the code?

You can add target="_blank"

with code like this

<a href="https://twitter.com">

change it to

<a href="https://twitter.com" 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!)

  • 3 weeks later...
Posted

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <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: 5px;
          line-height: 100%!important;
        }
        .t-social .fa {
          font-size: 26px;
          margin: 0.8px;
          color: #8d8d8d;
      }
        .t-social .fa:hover {color:#4285f4;}
      </style>
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" />
</head>
<body>
    <ul class="t-social">
        <!-- <li>
          <a href="#">
        <i class="fa-brands fa-square-x-twitter fa-2xl"></i>
          </a>
        </li> -->
        <li>
          <a href="https://www.tiktok.com/@wonderlandsoftplaycentre"  target="_blank">
          <i class="fa-brands fa-tiktok fa-2xl"></i>
          </a>
        </li>
        <li>
          <a href="https://www.facebook.com/wonderlandplayexeter"  target="_blank">
      <i class="fa-brands fa-facebook fa-2xl"></i>
          </a>
        </li>
        <li>
          <a href="https://www.instagram.com/wonderlandsoftplaycentres/?utm_source=ig_web_button_share_sheet&amp;igsh=ZDNlZDc0MzIxNw%3D%3D"  target="_blank">
<i class="fa-brands fa-square-instagram fa-2xl"></i>
          </a>
        </li>
        </ul>

      
        
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    
</body>
</html>

Posted
Just now, sourabh123 said:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <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: 5px;
          line-height: 100%!important;
        }
        .t-social .fa {
          font-size: 26px;
          margin: 0.8px;
          color: #8d8d8d;
      }
        .t-social .fa:hover {color:#4285f4;}
      </style>
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" />
</head>
<body>
    <ul class="t-social">
        <!-- <li>
          <a href="#">
        <i class="fa-brands fa-square-x-twitter fa-2xl"></i>
          </a>
        </li> -->
        <li>
          <a href="https://www.tiktok.com/@wonderlandsoftplaycentre"  target="_blank">
          <i class="fa-brands fa-tiktok fa-2xl"></i>
          </a>
        </li>
        <li>
          <a href="https://www.facebook.com/wonderlandplayexeter"  target="_blank">
      <i class="fa-brands fa-facebook fa-2xl"></i>
          </a>
        </li>
        <li>
          <a href="https://www.instagram.com/wonderlandsoftplaycentres/?utm_source=ig_web_button_share_sheet&amp;igsh=ZDNlZDc0MzIxNw%3D%3D"  target="_blank">
<i class="fa-brands fa-square-instagram fa-2xl"></i>
          </a>
        </li>
        </ul>

      
        
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    
</body>
</html>

use this code for multiple social link in diffrent  pages 

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.