aguec Posted September 13, 2023 Posted September 13, 2023 Hello, I hope you can help me with my problems with Social Media Links on this Squarespace site: https://www.bsil.de My client wants the social icons to be displayed as flags with a fixed frame. I have set this up for the desktop version. On the smartphone view, the social icons are not displayed. Not in the menu (hamburger menu) and not as flags on the different pages. How can I fix this? The website is created with 7.0 (Brine Family, Moksha-Template) To create the box with the social icons, I used this CSS code: .Header-social { border: 2px solid #c3131d; background: #ffffff; color: #000000; } @media screen and (min-width: 640px) { .SocialLinks-link { display: block; } .Header-social { position: fixed; top: 40%; z-index: 9999; right: 0; } }
Solution tuanphan Posted September 15, 2023 Solution Posted September 15, 2023 This is a bit tricky 😄 Don't remove your CSS code. Add this CSS code to force social icons float on right on mobile @media screen and (max-width:640px) { header.Header.Header--top, .Header-inner.Header-inner--top { display: block !important; height: 0px !important; } header.Header.Header--top [data-nc-container="top-left"] { display: none !important; } header.Header--top [data-nc-container="top-right"]>*:not(:first-child) { display: none !important; } .Header-social { position: fixed; top: 40%; z-index: 9999; right: 0; } .SocialLinks-inner { display: flex; flex-direction: column; }} 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!)
aguec Posted September 18, 2023 Author Posted September 18, 2023 WONDERFUL! You made my day! Thank you very much for your support. Regards from Munich tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment