How to keep my socials from showing on only my cart in shopify?

Hi Dear People, i can not seem to find the exact file and code to stop my socials from showing on mij cart page and at the same time to keep showing it on all other pages of my website in shopify, could someone help please, my shop is www.lucky4voeter .nl Thank you in advance

Best Regards,

Antony

You’ll need to find the code responsible for rendering your social media icons and wrap it in a conditional statement. Most themes include social icons in the footer, so check your sections/footer.liquid file first, or sometimes directly in layout/theme.liquid.

Look for a div or section that contains your social icons. Once you’ve located it, add an unless statement around it like this:


{% unless request.page_type == 'cart' %} <!-- Your existing social media icon code goes here --> {% endunless %}

This request.page_type == 'cart' condition checks if the current page being viewed is the cart page. The unless ensures that the code inside only runs if it’s not the cart page. The exact location of the social icons can vary quite a bit between themes, so you might need to do a bit of digging in your theme files.

Hope that helps!

P.S. I’m building a gamified discount app called Game Gophers and I think your site would be perfect for it! I’m looking for beta testers. If you’re interested, I can DM you a short video of what it would look like on your site.

the theme is from ecomify by the way and yes the sections-footer.liquid shows code of showing the socials true or false but i only need to NOT show my socials on my add to cart - cart page SECTION but stil want the socials to be shown on all other pages. an yes you may always dm me

@Antonynex can you please share the screenshot of the part which you want to remove on cart page?

only the social icons facebook and instagram at the bottom of this cart page i want to hide cause it distracts customers, but on all other parts of the website i stil want the social icons to been shown. (the theme is by the way ecomify-lite 1.0.0

hi there, i have put the requested information in the post, let me know if you know a solution please, thank you

@Antonynex You said cart page, but I think you’re talking about the cart drawer. Perhaps your theme editor can disable the social icons on the cart drawer.

thanks for your reply but, i can not find a disable function for the cart drawer in my theme editor

@Antonynex please add this css to the very end of your base.css file and check

shopify admin->online store->themes->edit theme code->assets->base.css

#offcanvas-cart .social-icons{display: none; visibility: hidden;}

ok i wil try and let you know, thank you!

hope it works

Wauw, i works, only the text “Volg ons op“ that pointed to those social icons keeps standing, how can i remove that to on only the same cart pert/ section while keeping it on all other pages ?

caus then it is is a solution

Thank you so mutch !

i solved that in the mean time by making the code like this: #offcanvas-cart .social-icons,
#offcanvas-cart .product-socials-title {
display: none !important;
visibility: hidden !important;
}

and it works flawlesly. thank you for your input as a base. therefore i give you the honner of solution

@Antonynex nice to know that it has worked for you.