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?
User avatar
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.
User avatar
Moderator

GK User
Wed Mar 15, 2017 6:20 am
See PM.
User avatar
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;
}
User avatar
Moderator

GK User
Wed Mar 15, 2017 3:14 pm
Unfortunaly it affects total price here: http://custom-iem.ru/product/ice-lab-ex5/
User avatar
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.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.