mcskin45 Posted October 31, 2019 Share Posted October 31, 2019 (edited) When building my site, i came across a problem I couldn't solve. I have my social media icons on the navigation on top of the page. When viewed in mobile, I lose them. I was looking to put them in the mobile menu (inside the hamburger icon) but was never able to find a solution. Was wondering if anyone had a solution to that. What I did was I placed them in the contact page on the bottom when seen on mobile. That is a temporary solution until i find a permanent solution. Is there a way to do this using CSS? I am using brine template. A solution to this would be appreciated. http://www.marinocarrabs.com Thank you! Edited October 31, 2019 by mcskin45 Link to comment
sarahjohanna Posted November 5, 2019 Share Posted November 5, 2019 same question here Link to comment
tuanphan Posted December 5, 2019 Share Posted December 5, 2019 13 minutes ago, mcskin45 said: Bump If you can place social icons on Secondary Menu, i can give you code to hide them on Desktop, and show only mobile. 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
Guest Posted December 7, 2019 Share Posted December 7, 2019 Here is what i did. DESIGN > SITE STYLE > HEADER LAYOUT Social Position : Hide. SETTINGS > ADVANCED > CODE INJECTION Pasted this code to HEADER: <script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script> Then google fontawesome Choose your icon Copy link create links in PRIMARY NAVIGATION or SECONDARY NAVIGATION. Paste link to title: LINK TITLE - <i class="fab fa-facebook"></i> LINK - url of my social account And its done. The size will be the font size you choose for navigation. Alter its position by rearranging it in the menu. It will display on mobile also but vertically. Link to comment
LJSpace Posted December 16, 2019 Share Posted December 16, 2019 Ghost Plugins strikes again: https://www.ghostplugins.com/secret/841l164f I think you may need a business account to use this SS feature. P/W for GhostPlugins secret plugins is "whisper" I highly recommend subscribing to their list, they are awesome! From your Squarespace account, go to Site Code Injection. Copy and paste the code below into the Header Code Injection box. <script> Y.on('domready', function(){ var mobileSocial = Y.one(".Header-social").cloneNode(true).addClass('.mobile-social'); Y.one(".Mobile-overlay-menu-main").append(mobileSocial); }); </script> PaulOMeara and ghostplugins 2 Link to comment
ghostplugins Posted January 2, 2020 Share Posted January 2, 2020 @LJSpace Shhhhh, that's a secret! 🤫 Haha, jk. Thanks so much for sharing Ghost! 😊 Cody LJSpace 1 Cody and Team Ghost Plugins: Boo! Over 500+ free plugins for Squarespace 👻 Pluto Studio by Ghost: No design fees, hourly rates, or deposits 🌘 White Label: Expedite your client work and boost profitability 🎉 Connect with me on Linkedin Link to comment
maldrich Posted February 7, 2020 Share Posted February 7, 2020 Any idea why the plugin from Ghost works on one of my sites but not another? www.smithstreethomes.com is the site i question where I put it in the header code injection and nothing happens :( Link to comment
tuanphan Posted February 7, 2020 Share Posted February 7, 2020 22 minutes ago, maldrich said: Any idea why the plugin from Ghost works on one of my sites but not another? www.smithstreethomes.com is the site i question where I put it in the header code injection and nothing happens 😞 follow this comment: 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
siweisong Posted August 10, 2020 Share Posted August 10, 2020 On 1/2/2020 at 1:38 AM, moovlabs said: @LJSpace Shhhhh, that's a secret! 🤫 Haha, jk. Thanks so much for sharing Ghost! 😊 Cody What if I don't have or want social icons on the header? But I still want them on the mobile menu? Link to comment
tuanphan Posted August 12, 2020 Share Posted August 12, 2020 On 8/10/2020 at 11:15 PM, siweisong said: What if I don't have or want social icons on the header? But I still want them on the mobile menu? Add 3 Link items to Menu & add this to Home > Settings > Advanced > Code Injection > Header, then share site url. We can give the code. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> 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
ekspohz Posted December 31, 2020 Share Posted December 31, 2020 On 8/10/2020 at 9:15 AM, siweisong said: What if I don't have or want social icons on the header? But I still want them on the mobile menu? You can still use the code above and then add the following to your Custom CSS to hide on desktop. // Hide Social Links Header // .Header--top .SocialLinks-link {display: none !important} tuanphan 1 Link to comment
knockout.design Posted September 2, 2021 Share Posted September 2, 2021 Code worked great, but can't figure out how to change the social icon color on the mobile menu only - any tips? I need them to remain black on the website but trying to get them to display white on the mobile menu - see pic attached. Appreciate anyone's help on this! Link to comment
tuanphan Posted September 5, 2021 Share Posted September 5, 2021 On 9/3/2021 at 2:56 AM, knockout.design said: Code worked great, but can't figure out how to change the social icon color on the mobile menu only - any tips? I need them to remain black on the website but trying to get them to display white on the mobile menu - see pic attached. Appreciate anyone's help on this! Hi, What is your site url? 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
ratkaj Posted November 9, 2021 Share Posted November 9, 2021 On 9/4/2021 at 9:19 PM, tuanphan said: Hi, What is your site url? Know this thread is old but just in case someone comes across this below is the code to change the color: ////Change mobile social color//// .icon--fill{ color: #red !important; } tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment