Shopify themes, liquid, logos, and UX
Hello, I am currently trying to make my button disappear. I coded my website so that I could have my image linked to my booking site. However, the button won't disappear even though there is no text on it. Please help. I am using the Dawn 11.0 theme.
Hi @ChilynnH
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
*:empty, button:empty, a:empty {
display: none;
}
Hope this can help you solve the issue
Best regards,
Noah | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
The code didn't work. It just left a banner with the text from the code "*:empty, button:empty, a:empty { display: none; }" at the top of my page. Should my code be between any open and closed brackets?
Hi @ChilynnH I'm so sorry, please copy this code again, i forgot to put the correct style tag.
Here's the correct code
<style>
*:empty, button:empty, a:empty {
display: none;
}
</style>
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
User | RANK |
---|---|
194 | |
179 | |
84 | |
57 | |
45 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023