Change price range style
May 2014 WordPress Theme
- GK User
- Tue Mar 14, 2017 5:09 pm
My price range on variable products is red. I want only summary price (in the down of page) to be red, and price range on product page (upper one) to be black.
But from what I see:
1. upper price (i mean upper on page),
2. total price (the one above options)
3. the only one price on page of non variable price product - they are all same class. So I can't change the styles.
I want.
1) if product has only one price on page (in the up) - red and big.
2) if product has 2 prices on page, upper one - small and black, down one - red and big.
How to do that?
But from what I see:
1. upper price (i mean upper on page),
2. total price (the one above options)
3. the only one price on page of non variable price product - they are all same class. So I can't change the styles.
I want.
1) if product has only one price on page (in the up) - red and big.
2) if product has 2 prices on page, upper one - small and black, down one - red and big.
How to do that?
-
- Junior Boarder
- Joshua M
- Wed Mar 15, 2017 12:59 am
Could you provide an URL to your page where this variable product is visible? If you can, please take the screenshot and mark elements that need to be changed.
-
- Moderator
- GK User
- Wed Mar 15, 2017 6:20 am
See PM.
-
- Junior Boarder
- Joshua M
- Wed Mar 15, 2017 9:29 am
Try to add the following custom css code:
- Code: Select all
.product-type-variable .price,
.product-type-variable .price .price-text,
.product-type-variable .price .price-text +.amount {
color: #000!important;
font-size: 18px!important;
}
-
- Moderator
- GK User
- Wed Mar 15, 2017 3:14 pm
Unfortunaly it affects total price here: http://custom-iem.ru/product/ice-lab-ex5/
-
- Junior Boarder
- Joshua M
- Thu Mar 16, 2017 9:26 am
so unfortunately it's not possible without overriding WooCommerce template files:
https://docs.woocommerce.com/document/t ... structure/
Then, you should add custom css class to your price (within overriden file) and use this class with my code from previous post. Regarding the override issue - please ask WooCOmmerce support, because it's plugin related.
https://docs.woocommerce.com/document/t ... structure/
Then, you should add custom css class to your price (within overriden file) and use this class with my code from previous post. Regarding the override issue - please ask WooCOmmerce support, because it's plugin related.
-
- Moderator
6 posts
• Page 1 of 1