Hi,
I wanted to hide this app icon on my homescreen. My site is https://b32b39-5.myshopify.com
A user seeks to hide an app icon appearing on their Shopify store’s homepage. An initial CSS solution is provided:
First attempt:
theme.css file targeting .persistentcart_main_section with display: noneProblem: This hides the icon across all pages, not just the homepage.
Revised solution:
theme.liquid file before the closing </body> tag{% if template == 'index' %}The discussion involves CSS customization and Shopify Liquid templating to achieve page-specific element hiding. The solution progresses from a global hide to a homepage-only implementation.
HI @MIKESTORK
This is Henry from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.css
Step 3: Paste the below code at bottom of the file → Save
@media (max-width: 767px){
.persistentcart_main_section {
display: none !important;
}}
Hope that my solution works for you.
Best regards,
Henry | PageFly
The code hid it on all pages. I just want it to hide on the homepage
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: paste bellow code in tag → save.
{% if template == ‘index’ %}
@media (max-width: 767px){ .persistentcart_main_section { display: none !important; }}{% endif %}