New Shopify Certification now available: Liquid Storefronts for Theme Developers

Button Will Not Go Away After Linking Image Banner to External Link.

ChilynnH
Tourist
7 0 3

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.

Replies 3 (3)
PageFly-Noah
Globetrotter
561 130 130

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.

ChilynnH
Tourist
7 0 3

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? 

PageFly-Noah
Globetrotter
561 130 130

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.