What's your biggest current challenge? Have your say in Community Polls along the right column.

How can I modify collections page components on my ecommerce site?

Solved

How can I modify collections page components on my ecommerce site?

MotionStore111
Excursionist
38 0 6

Hello,

 

I was wondering how to change a few components on my collections page.

I want to get rid of the two arrows on used to browse product photos
Also change the product sale color from green to black.

Store URL : https://merciane.com/
pp.JPG

Accepted Solution (1)
ZenoPageBuilder
Shopify Partner
1052 203 227

This is an accepted solution.

Yes, so please change the code like this

 

.product-item .carousel-controls {
    display: none !important;
}

.product-item .product-item-price-final {
    color: #000 !important;
}

@media (max-width: 749px) {
    .product-item-price-compare {
        color: #000 !important;
    }
}
Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com

View solution in original post

Replies 10 (10)

Transcy
Shopify Partner
285 19 87

Hello @MotionStore111 ,

 

You can try to follow these steps:

Go to Online Store -> Themes -> Actions -> Edit code

Go to Sections -> product-template.liquid file

Search for the code that renders the product photo gallery. It might look like this:

<div class="product-gallery">
  <!-- Code for rendering the product photos goes here -->
</div>

Comment out the code for the navigation arrows. Like this:

{% comment %}
<button class="product-gallery__prev-arrow">Previous</button>
<button class="product-gallery__next-arrow">Next</button>
{% endcomment %}

 

To change the product price color:

Go to Assets folder -> base.css file -> add this following code at the bottom of page

.product-price {
  color: black;
}

Save and preview

 

Hope this can help. Let us know if you need any further support.

Transcy

Transcy - The #1 Translation and Currency Converter
- Was my answer helpful? Please hit Like or Mark it as solution!
- Get in touch with us: App Store | Blog
MotionStore111
Excursionist
38 0 6

@Transcy 

Hello,
I think I found the section you first mention, image below, not sure what to do with it. 

I dont see the second seciton anywhere in the code
<button class="product-gallery__prev-arrow">Previous</button> <button class="product-gallery__next-arrow">Next</button>' 


Also the product price color code does not change anything. 
Any alternatives?


sss.JPG

ZenoPageBuilder
Shopify Partner
1052 203 227

Hello @MotionStore111 

Inside Shopify Admin, you can go to Edit theme code, open file base.css and add this code at the bottom

.product-item .carousel-controls {
    display: none;
}

.product-item .product-item-price-final {
    color: #000;
}

The result

Screenshot 2023-07-18 at 10.05.20.png

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
MotionStore111
Excursionist
38 0 6

Hello @ZenoPageBuilder 

Try adding the code you instructed, looks like nothing changed.
Anything else we can try?
ss.JPG

ZenoPageBuilder
Shopify Partner
1052 203 227

Thank you for letting me know. Please change the code to this instead

.product-item .carousel-controls {
    display: none !important;
}

.product-item .product-item-price-final {
    color: #000 !important;
}
Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
MotionStore111
Excursionist
38 0 6

Thank you so much Zeno

MotionStore111
Excursionist
38 0 6

Sorry, I just realized the original price is shown as a white font in the mobile view, is there code to fix this too?

this is what it looks like:
aaa.JPG

ZenoPageBuilder
Shopify Partner
1052 203 227

This is an accepted solution.

Yes, so please change the code like this

 

.product-item .carousel-controls {
    display: none !important;
}

.product-item .product-item-price-final {
    color: #000 !important;
}

@media (max-width: 749px) {
    .product-item-price-compare {
        color: #000 !important;
    }
}
Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
MotionStore111
Excursionist
38 0 6

Thank you, I appreciate your help

richardcobain
Excursionist
40 0 4

Hi!

To remove the arrows on your collections page, you’ll need to modify the theme’s JavaScript or CSS, disabling the image navigation code. To change the sale price color, go to Online Store > Themes > Customize > Theme settings > Colors and adjust the sale price color. Alternatively, you can modify the CSS directly. After making changes, test the page to ensure everything works as expected.