Shopify themes, liquid, logos, and UX
HI,
I'd like to hide the circled items when a customer is not logged into the site.
You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code above the </head> tag
{% unless customer %}
.product-block--price .product__price-savings,
.product-block a:first-child,
.grid-product__price .grid-product__price--savings {
display: none !important;
}
{% endunless %}
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
Hi @Luxurymrkt
You can do that by adding this code to theme.liquid file after <head>
{% if customer %}
<style>
.grid-product__price--savings,
.product-single__meta .product__price-savings,
.product-single__meta .product-block--price + .product-block { display: none !important; }
</style>
{% endif %}
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi @Luxurymrkt
{% unless customer %}
<style>
.product__price-savings {
display: none!important;
}
.product-single__meta .product-block--price + .product-block {
display: none!important;
}
.grid-product__price--savings {
display: none!important;
}
</style>
{% endunless %}
Hi @Luxurymrkt
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file theme.css. Add the following CSS snippet
[data-product-blocks]:has(.notAuthorizedBoxText) [data-save-price], .product-block:has(.notAuthorizedBoxText)+.product-block {
display: none !important;
}
Result
If it helps you, please like and mark it as the solution.
Best Regards
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025