New Landing How can we help? Themeforest Theme Support Neighborhood How to change colour of the Variable price?

Viewing 14 posts - 1 through 14 (of 14 total)
  • #37296
    davo
    Member
    Post count: 61

    Hello!
    I found that when you have a variable product and you choose an option it in its the product page the colour it shows is a light green (see attached file). Is the any css code I can use to change that?
    Thanks so much in advance!

    #37922
    Melanie – SUPPORT
    Member
    Post count: 11032

    Can you post up the URL to a page where this is happening so I can check it out directly?

    Thanks!

    #38178
    davo
    Member
    Post count: 61

    Sure!

    Here this link for example though, obviouly it happens in every variable product, you just have to select the product and the “green” price will appear ๐Ÿ˜‰
    Thanks so much

    http://www.rufoiluminacion.com/producto/apolo-a-811-2/

    #38764
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hey, you can use this custom css:

    .woocommerce div.product span.price, .woocommerce-page div.product span.price {
    color: black;
    }
    #38937
    DAPPER-tekstenweb
    Member
    Post count: 174

    Hey Melanie, what CSS should I use if I want the price to show in this hex #e87a9a ?

    #38953
    Fedde12
    Member
    Post count: 41

    @davo How did you add the color and size viables to this item? I can’t figure it out.. help me out please. Thanks

    #39024
    davo
    Member
    Post count: 61

    @Fedde12 here you have a link where you can find all the info about that:
    http://docs.woothemes.com/document/product-variations/

    I hope it helps!

    #39025
    Fedde12
    Member
    Post count: 41

    @davo Thanks! It was much easier then I thought.

    #39457
    davo
    Member
    Post count: 61

    Thanks so much Melanie!


    @DAPPER-tekstenweb
    if you want that color just change black for the color code you need, this would be you final code then:

    .woocommerce div.product span.price, .woocommerce-page div.product span.price {
    color: #e87a9a;
    }

    For me it worked awesomely ๐Ÿ˜‰

    #39986
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Thanks for posting that @davo ๐Ÿ™‚

    – Ed

    #114828
    glassdomain
    Member
    Post count: 103

    Could you tell me where/how to add some static text into the page just before the variant price please?
    I would ideally like to do this through the child theme if possible to avoid issues with theme updates.

    The text I want to add is “Total price for your option:”

    Many thanks,

    #114948
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Try adding this to your custom css:

    .single_variation_wrap .single_variation:before {
      content: "Total price for your option";
      margin-right: 10px;
    }
    

    – Kyle

    #114958
    glassdomain
    Member
    Post count: 103

    Hi Kyle,

    Thanks that’s awesome!

    Best,

    Pete

    #114960
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

    – Kyle

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register