Hi Everyone,
I’m trying to remove the pricing from the homepage on the Boundless theme.
Here is the link to my store
https://mayes-nyc.myshopify.com/
Any help would greatly appreciated
thanks
Hi Everyone,
I’m trying to remove the pricing from the homepage on the Boundless theme.
Here is the link to my store
https://mayes-nyc.myshopify.com/
Any help would greatly appreciated
thanks
You can do this by editing the code in your theme file. Here’s how:
We can see that the price is wrapped in the element with class product-item__price-wrapper, and in the section with ID shopify-section-featured-collection.
To hide it then, we’ll add a CSS rule:
#shopify-section-featured-collection .product-item__price-wrapper {
display: none;
}
{% if template == "index" %}
#shopify-section-featured-collection .product-item__price-wrapper {
display: none;
}
{% endif %}
Implementing the change
Add that code to your custom CSS file.
If you don’t have a custom CSS file set up yet, follow the instructions here to set that up: https://speedboostr.com/how-to-safely-edit-your-shopify-theme.
thanks, I’m working on this now.
I’ve backed up the theme (great tip) added custom.scss.liquid as a new asset and inserted the below code
#shopify-section-featured-collection .product-item__price-wrapper {
display: none;
}
Now when I got back to the theme.liquid to insert the {{ ‘custom.scss.css’ | asset_url | stylesheet_tag }} and I’m not sure where it goes.
This is what I’m seeing, I’ve added it below in BOLD, nothing changed.
Please advise, and thanks for your help.
{% if settings.favicon %}
{% endif %} {{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} – {{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} – {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} – {{ shop.name }}{% endunless %}{% if page_description %}
{% endif %}
{% include ‘social-meta-tags’ %}
{{ ‘theme.scss.css’ | asset_url | stylesheet_tag }}
{{ ‘custom.scss.css’ | asset_url | stylesheet_tag }}
{% if request.page_type contains ‘customers/’ %}
{% endif %}
{{ content_for_header }}
{% include ‘shoppable_instagram_init’ %}
{%- if request.page_type == ‘search’ and search.performed -%}
{% section ‘footer’ %}
{% comment %}
Enable ajax cart drawer
{% endcomment %}
{% if settings.cart_type == ‘drawer’ %}
{% endif %}
That looks right. Make sure you’re previewing the correct theme (the backup theme you added the stylesheet to).
If it’s the correct theme, inspect the website (explained in that post) to make sure the styles are being applied and figure out why it’s not showing.
Hey thanks,
I dove in a bit deeper and got this to work.
Thanks again