All things Shopify and commerce
Hi everyone.
Tried to use a code inside theme.liquid that I have found in this forum.
Tried many of them. None works.
Where is that section appear?
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hey @PedroAnastaBoff
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
p._discount-label_brsm1_59 {
display: none !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi Thank you.
However it didnt work.
This is Richard from PageFly - Shopify Page Builder App
Hi @PedroAnastaBoff Please add code here to fix it:
Step 1: Online Stores > Themes > Edit code
Step 2: Choose file theme.liquid
Step 3: Add code above the tag </body>
<script>
document.addEventListener("DOMContentLoaded", function () {
// Function to hide the element when it appears
function hideDiscountLabel() {
const discountLabel = document.querySelector("p._discount-label_brsm1_59");
if (discountLabel) {
discountLabel.style.display = "none";
observer.disconnect(); // Stop observing once the element is found & hidden
}
}
// Observe the body for dynamically added elements
const observer = new MutationObserver(hideDiscountLabel);
observer.observe(document.body, { childList: true, subtree: true });
// Run once in case the element already exists
hideDiscountLabel();
});
</script>
And here is result
Hope my solution will help you resolve the issue.
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi Richard,
Thank you for taking the time to investigate my issue,
However it did not work.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025