lulu.lindberg Posted October 28, 2021 Share Posted October 28, 2021 Site URL: https://fennel-hawk-fwg3.squarespace.com/services https://fennel-hawk-fwg3.squarespace.com/services Password: tails2021 On this page, I have social links in the banners that say "Ontario" and "Alberta". These are two different branches of business with separate social accounts. I want to be able to hide the irrelevant social icons in each banner (so for Ontario, the last three should be hidden. For Alberta, the first three should be hidden.) Any help would be greatly appreciated! Thanks in advance. Link to comment
Beyondspace Posted October 28, 2021 Share Posted October 28, 2021 1 hour ago, lulu.lindberg said: Site URL: https://fennel-hawk-fwg3.squarespace.com/services https://fennel-hawk-fwg3.squarespace.com/services Password: tails2021 On this page, I have social links in the banners that say "Ontario" and "Alberta". These are two different branches of business with separate social accounts. I want to be able to hide the irrelevant social icons in each banner (so for Ontario, the last three should be hidden. For Alberta, the first three should be hidden.) Any help would be greatly appreciated! Thanks in advance. You can add to Home > Design > Custom Css /*Display social icon for Ontario*/ section[data-section-id="617aeb94ea317421e526d6a0"] { .socialaccountlinks-v2-block { a { &:last-child { display: none; } &:nth-child(5) { display: none; } &:nth-child(4) { display: none; } } } } /*Display social icon for Alberta*/ section[data-section-id="617b0a9ccfc6cd38e68acb90"] { .socialaccountlinks-v2-block { a { &:first-child { display: none; } &:nth-child(2) { display: none; } &:nth-child(3) { display: none; } } } } Let me know if it works properly on your site Support me by pressing 👍 if this useful for you lulu.lindberg 1 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword HighlighterIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
lulu.lindberg Posted October 29, 2021 Author Share Posted October 29, 2021 @bangank36 It worked! Thank you so much! 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