Jump to content

Adding TikTok Icon For Social Links

Recommended Posts

On 10/26/2021 at 1:16 AM, paigethirtytwo said:

Hi! I used this code and it works! However, the icon size is smaller compared to my client's other social link icons. Do you know how to have all icons in the same size? Thank you. 


Client's site: https://amysuto.squarespace.com/about

Screen Shot 2021-10-25 at 11.13.18 AM.png

You can also consider using FontAwesome to add Tiktok icon. Thus you can adjust size, color easily

If you want this, I will check & give new 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
  • 3 weeks later...
32 minutes ago, DrRichFG said:

I need that too, if possible. My url is www.drrichfg.com

Hey @DrRichFG try to use this free plugin for adding custom TikTok icon https://squarerefresh.com/plugins/social-plus

SquareRefresh, premium plugins & templates that have an elevated feel.

Plugins: Have your site stand out. 
Templates: Our templates are designed with versatility in mind.
Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.

Link to comment
On 11/16/2021 at 3:27 PM, DrRichFG said:

I need that too, if possible. My url is www.drrichfg.com

Add to Settings > Advanced > Code Injection > Footer

<script>
var tiktoks = document.querySelectorAll('a[href*="tiktok"]')

tiktoks.forEach(item => {
    item.innerHTML = `
<svg fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 50 50">
  <path fill-rule="nonzero" d="M37.006,22.323C36.779,22.344 36.549,22.358 36.316,22.358C33.693,22.358 31.388,21.009 30.047,18.97L30.047,30.507C30.047,35.216 26.229,39.034 21.52,39.034C16.811,39.034 12.993,35.216 12.993,30.507C12.993,25.798 16.811,21.98 21.52,21.98C21.698,21.98 21.872,21.996 22.047,22.007L22.047,26.209C21.872,26.188 21.7,26.156 21.52,26.156C19.116,26.156 17.168,28.104 17.168,30.508C17.168,32.912 19.116,34.86 21.52,34.86C23.924,34.86 26.047,32.966 26.047,30.562C26.047,30.467 26.089,10.968 26.089,10.968L30.105,10.968C30.483,14.559 33.382,17.393 37.006,17.653L37.006,22.323Z"/>
</svg>`
})
</script>

 

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
1 hour ago, eunicekim said:

How do I add a white Tiktok logo to my header and footer? I tried following the code above, but couldn't get it to work.

My website is: euniceks.com

It seems that you posted your issue in a new thread

I've given solution for it, kindly check if it works properly on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 11/20/2021 at 7:42 AM, eunicekim said:

How do I add a white Tiktok logo to my header and footer? I tried following the code above, but couldn't get it to work.

My website is: euniceks.com

Add to Code Injection > Footer

<script>
var tiktoks = document.querySelectorAll('a[href*="tiktok"]')

tiktoks.forEach(item => {
    item.innerHTML = `
<svg fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 50 50">
  <path fill-rule="nonzero" d="M37.006,22.323C36.779,22.344 36.549,22.358 36.316,22.358C33.693,22.358 31.388,21.009 30.047,18.97L30.047,30.507C30.047,35.216 26.229,39.034 21.52,39.034C16.811,39.034 12.993,35.216 12.993,30.507C12.993,25.798 16.811,21.98 21.52,21.98C21.698,21.98 21.872,21.996 22.047,22.007L22.047,26.209C21.872,26.188 21.7,26.156 21.52,26.156C19.116,26.156 17.168,28.104 17.168,30.508C17.168,32.912 19.116,34.86 21.52,34.86C23.924,34.86 26.047,32.966 26.047,30.562C26.047,30.467 26.089,10.968 26.089,10.968L30.105,10.968C30.483,14.559 33.382,17.393 37.006,17.653L37.006,22.323Z"/>
</svg>`
})
</script>

 

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
  • 2 weeks later...
34 minutes ago, LetterBetterAcademy said:

Hi!
Can someone help me with this? I have added the link to my TikTok profile but I would like to use a TikTok logo in place of the generic SquareSpace "link" icon. My URL is https://www.letterbetteracademy.com/

I see all of the code above but I am not really sure what to do with it. I would also like to do the same for our VK account.

Thanks for any help.

tiktok.png

free-vk-icon-102-thumb.png

Try adding to Home > Design > Custom Css

/*Setting for tiktok icon*/
.icon--fill[href*='tiktok'] {
	background: url('https://api.iconify.design/teenyicons/tiktok-solid.svg') no-repeat center center / contain;
	svg {
		display: none;
	}
}

/*Setting for vk icon*/
.icon--fill[href*='vk.com'] {
	background: url('https://api.iconify.design/teenyicons/tiktok-solid.svg') no-repeat center center / contain;
	svg {
		display: none;
	}
}

Replace my url with your real image url

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

I used the code below for the tiktok icon but when I add the social link block on the contact page (pw: grit), the tik tok icon sits on the upper left of the box.  Anybody know how I can fix it? 

688041345_ScreenShot2021-12-03at14_09_58.png.43b55b7b7ac1350ce8295e6864ec03b6.png

/* Footer Tiktok icon */
.sqs-svg-icon--wrapper[href*=tiktok] .sqs-svg-icon--social {
  display: none;
}
.sqs-svg-icon--list:hover .sqs-svg-icon--wrapper[href*=tiktok] {
  background: #777;
}
.sqs-svg-icon--wrapper[href*=tiktok] {
  background: transparent;
}
.sqs-svg-icon--wrapper[href*=tiktok]:hover {
  background: #ffffff !important;;
}
.sqs-svg-icon--wrapper[href*=tiktok] > div {
  display: inline-block;
  background: url(https://www.designbust.com/download/1019/png/tiktok_logo_png_transparent256.png) no-repeat;
  background-size: cover;
  width: 50%;
   height: 50% ;
  top: 20%;
  left: 20%;
  transform: translate(-50%, -50%)
}

/* Header Tiktok icon */
a.icon.icon--fill[href*=tiktok] svg {
  opacity: 0;
}
a.icon.icon--fill[href*=tiktok] {
  position: relative;
}
a.icon.icon--fill[href*=tiktok]:after {
      content: '';
    position: absolute;
    background: url(https://uxwing.com/wp-content/themes/uxwing/download/10-brands-and-social-media/tiktok.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 90%;
    height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: invert()
}

.highlight { color: #32c247} .lowlight { color: #FFFFF }

[data-section-id="618ceedae1861a7310dc6883"] .content-wrapper {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
 

Link to comment
38 minutes ago, Nir said:

I used the code below for the tiktok icon but when I add the social link block on the contact page (pw: grit), the tik tok icon sits on the upper left of the box.  Anybody know how I can fix it? 

688041345_ScreenShot2021-12-03at14_09_58.png.43b55b7b7ac1350ce8295e6864ec03b6.png

/* Footer Tiktok icon */
.sqs-svg-icon--wrapper[href*=tiktok] .sqs-svg-icon--social {
  display: none;
}
.sqs-svg-icon--list:hover .sqs-svg-icon--wrapper[href*=tiktok] {
  background: #777;
}
.sqs-svg-icon--wrapper[href*=tiktok] {
  background: transparent;
}
.sqs-svg-icon--wrapper[href*=tiktok]:hover {
  background: #ffffff !important;;
}
.sqs-svg-icon--wrapper[href*=tiktok] > div {
  display: inline-block;
  background: url(https://www.designbust.com/download/1019/png/tiktok_logo_png_transparent256.png) no-repeat;
  background-size: cover;
  width: 50%;
   height: 50% ;
  top: 20%;
  left: 20%;
  transform: translate(-50%, -50%)
}

/* Header Tiktok icon */
a.icon.icon--fill[href*=tiktok] svg {
  opacity: 0;
}
a.icon.icon--fill[href*=tiktok] {
  position: relative;
}
a.icon.icon--fill[href*=tiktok]:after {
      content: '';
    position: absolute;
    background: url(https://uxwing.com/wp-content/themes/uxwing/download/10-brands-and-social-media/tiktok.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 90%;
    height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: invert()
}

.highlight { color: #32c247} .lowlight { color: #FFFFF }

[data-section-id="618ceedae1861a7310dc6883"] .content-wrapper {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
 

What is your protected password?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
19 minutes ago, Nir said:

It's in my post, the password is grit

Try changing your previous code with value 50% for top and left

image.png.44f537a7295a5b259ea6db88b8d78963.png

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
33 minutes ago, Nir said:

That worked for the social icons block but then it messed up the icon in the footer. 

Apply the following code for your footer icon

footer .sqs-svg-icon--wrapper[href*=tiktok]>div {
  transform: translate(-50%,-50%)  scale(2)!important;
}

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Hey there! I had used the codes I found here, and they mostly worked for my site. In the header and footer they looked fine, but if I put my social icons as an element the Tik Tok logo is half broken. My site is TayRevs.com and the password is: raytevs

It's not ready for publication yet so I have a password on it. Is there any way someone could help me?  :)

Link to comment
6 hours ago, tayrevs said:

Hey there! I had used the codes I found here, and they mostly worked for my site. In the header and footer they looked fine, but if I put my social icons as an element the Tik Tok logo is half broken. My site is TayRevs.com and the password is: raytevs

It's not ready for publication yet so I have a password on it. Is there any way someone could help me?  🙂

Hi @tayrevs

Can you share your site with the protected password to check your issue?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 11/16/2020 at 6:11 PM, bangank36 said:
.sqs-svg-icon--wrapper[href*=tiktok] .sqs-svg-icon--social {
  display: none;
}
.sqs-svg-icon--list:hover .sqs-svg-icon--wrapper[href*=tiktok] {
  background: #777;
}
.sqs-svg-icon--wrapper[href*=tiktok] {
  background: #ffffff;
}
.sqs-svg-icon--wrapper[href*=tiktok]:hover {
  background: #ffffff !important;;
}
.sqs-svg-icon--wrapper[href*=tiktok] > div {
  display: inline-block;
  background: url(https://www.designbust.com/download/1019/png/tiktok_logo_png_transparent256.png) no-repeat;
  background-size: cover;
  width: 50%;
   height: 50% ;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

image.png.ae87498f4954b5cfdb3af25bfbf187ef.png

Hi there! Thank you for sharing this! Could you help me out with the code for the patreon logo as well?

Link to comment
42 minutes ago, Phil84vaive said:

Hi there! Thank you for sharing this! Could you help me out with the code for the patreon logo as well?

Hi @Phil84vaive,

What do you intend to implement for logo?

Can you share your site with protected password so we can take a look?

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 2 weeks later...
On 12/24/2021 at 4:16 AM, billybradshaw said:

I'm wondering where you guys get the Tiktok logo from?  I'm assuming I want a vector image so I can style it the way the other logos are?  I am making some changes to my girlfriend's website for the first time in several years.

https://www.kalimeister.com

tiktok.png

Add to Design > Custom CSS. Replace pixabay image url with tiktok image url

header#header [href*="tiktok"] div svg {
    display: none;
}
header#header [href*="tiktok"] div {
    background-image: url(https://cdn.pixabay.com/photo/2021/12/10/13/59/star-6860582__480.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

 

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.