Jump to content

Adding Discord and TikTok social icons to cover page of website

Recommended Posts

  • 4 weeks later...

If anyone wants to add this with custom code. Follow this

Step 1. Add this line to COver Page Header

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.2/css/all.css" integrity="sha384-vSIIfh2YWi9wW0r9iZe7RJPrKwp6bG+s9QZMoITbCckVJqGCCRhc+ccxNcdpHuYu" crossorigin="anonymous">

Step 2. Share link to cover page, we will give the code

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
  • 9 months later...
17 hours ago, carly.pearlman said:

Hi @tuanphan!

I've added the code to my Cover Page and would like to move to Step 2 to get the discord logo up.

Here's the cover page.

Thank you!

Don't remove above code. Add this code to under

<style>
  [href*="discord"] div svg {
    display: none;
}

[href*="discord"] div:before {
    content: "\f392";
    font-family: "Font Awesome 5 Brands";
    color: white;
}

</style>

Reference: https://fontawesome.com/v5.15/icons/discord?style=brands

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
On 1/3/2022 at 1:08 AM, carly.pearlman said:

@tuanphan thank you!!

Is there anyway to make is just the icon? Right now the icon exist in a box even when I try to change the color.

 

Add this code to fix this

<style>
  [href*="discord"] div {
    transform: scale(1) !important;
}
</style>

 

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
10 hours ago, carly.pearlman said:

@tuanphan any chance you can help me add the TikTok logo as well? I've added the link to my social links on the site.

(sorry -- I didn't think I needed it but the client just asked 😬)

Use this code

<style>
 [href*="tiktok"] div svg {
    display: none;
}

[href*="tiktok"] div:before {
    content: "\e07b";
    font-family: "Font Awesome 5 Brands";
    color: white;
}
[href*="tiktok"] div {
    transform: scale(1) !important;
}
</style>

Reference: https://fontawesome.com/v5.15/icons/tiktok?style=brands

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.