Jump to content

Hiding certain social media icons on desktop only.

Go to solution Solved by Lesum,

Recommended Posts

  • Replies 1
  • Views 99
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution
Posted (edited)

 

Hi @TylerJames4, If you want to hide TikTok and Pinterest across the entire site, including both the header and footer, you can add this code under Website > Pages > Website Tools > Custom CSS.

@media screen and (min-width: 1025px) {
  a[aria-label="Pinterest"], a[aria-label="TikTok"] {
    display: none; 
  }
}

If you only want to hide TikTok and Pinterest from the header navigation bar, you can add this code instead.

@media screen and (min-width: 1025px) {
  #header a[aria-label="Pinterest"], #header a[aria-label="TikTok"] {
    display: none; 
  }
}
Edited by Lesum

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.