Jump to content

[Share] Individual Social Icon with Code Block

Recommended Posts

If you want to add Social Icons with Code Block (so you can link to different links on icons), you can follow these steps.

#1. First, use this code to Code Injection Header (If your site doesn’t support Injection, you can add it via Code Block)

<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" />

image.png.9ee0b56a9d6e4b938b9913fe8fd91d6b.png

#2. Next, Add Code Block where you want Social Icon to appear.

image.png.db8464d6360991a78e75d892a8d2882f.png

#3.1. With Youtube icon, use this code into Code Block

<a href="https://youtube.com/example" target="_blank">
<i class="fa-brands fa-youtube"></i>
</a>

image.png.aaeb00986ae5d35fb774aee43fc730de.png

#3.2. With Instagram Icon, use this code

<a href="https://instagram.com/example" target="_blank">
	<i class="fa-brands fa-instagram"></i>
</a>

image.png.9901239cabbe0880ce4ff62fc718bad1.png

#3.3. With Twitter icon, use this code

<a href="https://twitter.com/example" target="_blank">
	<i class="fa-brands fa-twitter"></i>
</a>

image.png.159552b1cd4bfaa82d49847662d48365.png

#3.4. With Tiktok icon, use this code

<a href="https://tiktok.com/@example" target="_blank">
	<i class="fa-brands fa-tiktok"></i>
</a>

image.png.256addecab2ccd2b7776f6c9f6540ff2.png

#3.5. With Facebook icon, use this code

<a href="https://facebook.com/tuanphan" target="_blank">
<i class="fa-brands fa-facebook"></i>
</a>

image.png.c6d1812ec7494a9f24e011012adce58d.png

#3.6. With LinkedIn icon, use this code

<a href="https://www.linkedin.com/in/tuan-phan" target="_blank">
	<i class="fa-brands fa-linkedin"></i>
</a>

 

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
  • Replies 0
  • Views 106
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Posted Images

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.