Jump to content

CSS Code to hide 2 social buttons on desktop header only

Go to solution Solved by Web_Solutions,

Recommended Posts

Hi,

I'd like to hide youtube and vimeo social links on the top header in desktop mode only

before:
social4.thumb.jpg.4bbfc769c8601b24ae387b8d374b1fb4.jpg

after:social2.thumb.jpg.4fb2147a01faddeee4db1822c2ede5a8.jpg

 

I only want the hiding of vimeo and youtube to happen on desktop header.

Footer and mobile header should not have the vimeo and youtube hiding:
i would like all 5 on mobile header:
social1.thumb.jpg.b6f75a497236867f5baf7b6c33dfd840.jpg

and keep all 5 on footer:

social3.thumb.jpg.26fc2994f9853d56866d6453a22d87f6.jpg

Problem is if you hide the header social links it affects all instances where it is used. any code to target only the header desktop to hide vimeo and youtube? is this possible with code?

Web: https://ellipse-teal-dl5w.squarespace.com/
Pass: 2


Thanks

Link to comment
  • Solution
2 hours ago, MAC1 said:

Hi,

I'd like to hide youtube and vimeo social links on the top header in desktop mode only

before:
social4.thumb.jpg.4bbfc769c8601b24ae387b8d374b1fb4.jpg

after:social2.thumb.jpg.4fb2147a01faddeee4db1822c2ede5a8.jpg

 

I only want the hiding of vimeo and youtube to happen on desktop header.

Footer and mobile header should not have the vimeo and youtube hiding:
i would like all 5 on mobile header:
social1.thumb.jpg.b6f75a497236867f5baf7b6c33dfd840.jpg

and keep all 5 on footer:

social3.thumb.jpg.26fc2994f9853d56866d6453a22d87f6.jpg

Problem is if you hide the header social links it affects all instances where it is used. any code to target only the header desktop to hide vimeo and youtube? is this possible with code?

Web: https://ellipse-teal-dl5w.squarespace.com/
Pass: 2


Thanks

 

Add this code on Custom CSS panel

@media only screen and (min-width: 768px) {
  .header-actions-action--social {
    [aria-label="YouTube"], [aria-label="Vimeo"] {
      display: none !important;
    }
  }
}

 

Edited by Web_Solutions

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.