sabercosmos Posted November 14, 2022 Share Posted November 14, 2022 Hey folks. I just found out how to use code to hide particular sections from view in mobile, and this has been super helpful. What I'd like to do next might be a bit more complicated though... Can I use code to remove sections from a specific URL too? For example, with my Shop I'd like to make it so I have a categories section displayed for the storefront, but i'd like to remove them from the specific category pages (eg. my Charms, Prints sub-sections). Is there a way to do this? I would usually do a code injection into the header, but since it's the shop it technically doesn't have seperate pages... I've drawn up what i'm looking for incase that was confusing! I have the Squarespace IDs extension downloaded btw if that helps. Many thanks! Link to comment
Beyondspace Posted November 14, 2022 Share Posted November 14, 2022 2 hours ago, sabercosmos said: Hey folks. I just found out how to use code to hide particular sections from view in mobile, and this has been super helpful. What I'd like to do next might be a bit more complicated though... Can I use code to remove sections from a specific URL too? For example, with my Shop I'd like to make it so I have a categories section displayed for the storefront, but i'd like to remove them from the specific category pages (eg. my Charms, Prints sub-sections). Is there a way to do this? I would usually do a code injection into the header, but since it's the shop it technically doesn't have seperate pages... I've drawn up what i'm looking for incase that was confusing! I have the Squarespace IDs extension downloaded btw if that helps. Many thanks! You can combine using media query Css and target the right section id you want to hide @media only screen and (max-width: 767px) { section-id { display: none; } } The extension to get right section id: Squarespace ID Finder How to get section id: https://recordit.co/Aj9vXw6rfY BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Beyondspace Posted November 14, 2022 Share Posted November 14, 2022 If you still do not figure out, you can share your site with the protected password so we can take a look BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
sabercosmos Posted November 14, 2022 Author Share Posted November 14, 2022 1 hour ago, Beyondspace said: You can combine using media query Css and target the right section id you want to hide Thanks! This works, but it hides the section from all the shop sections. Is there a way to reveal it only for one category? Also sorry my original post was a bit unclear- I'd like to do this for both desktop and mobile. 🙂 Website: https://www.sabercosmos.co.uk/ Pass: forum The section i'd like to have the "Shop by Collection" section in is Shop > All, and i'd like to remove it from the rest (like Shop > Prints and etc) Link to comment
tuanphan Posted November 21, 2022 Share Posted November 21, 2022 On 11/14/2022 at 11:11 PM, sabercosmos said: Thanks! This works, but it hides the section from all the shop sections. Is there a way to reveal it only for one category? Also sorry my original post was a bit unclear- I'd like to do this for both desktop and mobile. 🙂 Website: https://www.sabercosmos.co.uk/ Pass: forum The section i'd like to have the "Shop by Collection" section in is Shop > All, and i'd like to remove it from the rest (like Shop > Prints and etc) Do you still need help on this? Last week I helped a similar case for a member Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
sabercosmos Posted November 24, 2022 Author Share Posted November 24, 2022 On 11/21/2022 at 8:34 AM, tuanphan said: Do you still need help on this? Last week I helped a similar case for a member Yes please! Would you mind linking me the post? 🙂 Link to comment
ianeaf Posted November 28 Share Posted November 28 Hi @tuanphan, may you please share the post link? Also looking for this. Thanks! Beyondspace 1 Link to comment
tuanphan Posted November 30 Share Posted November 30 On 11/28/2023 at 8:38 PM, ianeaf said: Hi @tuanphan, may you please share the post link? Also looking for this. Thanks! You can share link to page + Which section you want to hide, we can check easier I don't remember the code I used, need to check it on new site Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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