Jump to content

Different Social Links Block

Go to solution Solved by tuanphan,

Recommended Posts

On 3/13/2024 at 4:26 AM, tuanphan said:

We can do this with Code Block. Can you let me know which social icons you want to add? I can give you Code Block code easier

Thank you. The most common social icons will be:

  • Facebook
  • X (Twitter)
  • Instagram
  • TikTok
  • YouTube
Link to comment
  • Solution
On 3/15/2024 at 5:25 AM, johanhccs said:

Thank you. The most common social icons will be:

  • Facebook
  • X (Twitter)
  • Instagram
  • TikTok
  • YouTube

You can add a Code Block > Paste this code. Replace example url with your social urls

 <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">
    <!-- facebook -->
    <li>
  <a href="https://facebook.com">
  <i class="fab fa-facebook-f"></i>
  </a>
</li>
    <!-- Twitter -->
<li>
  <a href="https://twitter.com">
 <i class="fab fa-twitter"></i>
  </a>
</li>
    <!-- instagram -->
    <li>
  <a href="https://instagram.com">
  <i class="fab fa-instagram"></i>
  </a>
</li>
        <!-- Tiktok -->
<li>
  <a href="https://tiktok.com">
  <i class="fab fa-tiktok"></i>
  </a>
</li>
    <!-- Youtube -->
     <li>
  <a href="https://youtube.com">
 <i class="fab fa-youtube"></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;
}
</style>

image.png.b9ddb0ea1ecdf5fc4dbe43fda243e849.png

image.thumb.png.3e125f636a73eff44720596e28da011c.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!)

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.