• Resolved watson926

    (@watson926)


    Hi,

    I have amended the price font colour for my products using the following Additional CSS:

    .woocommerce-Price-amount.amount {
    color: #278ee8;
    }

    The code successfully amends the price font but not the currency character. Can I change the currency character font colour using CSS as well?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • You would use.

    
    .price .woocommerce-Price-currencySymbol{
        color:red !important;
    }
    Thread Starter watson926

    (@watson926)

    Thanks – That did the trick,

    Noted that my original code did not change the price font colour for related products (in the product page) while the code you provided did change the currency character for the related products.

    Do I need load another CSS for the related product price font colour?

    Is there somewhere I can find an object reference list for woocommerce objects that I would like to change?

    Thanks again

    Selectors can be different depending on a theme. For Related Products it will be

    .related.products{}

    If you can find a class for a selector you want you can change it throughout.

    Like for instance what I gave you for symbol just change it to
    .woocommerce-Price-currencySymbol{} and it will change it throughout

    If you don’t know about console I’d suggest learning how to use it. Each browser have their own version of it but there’s nothing better to help you learn each selector for each div.

    Console View

    View post on imgur.com

    In most browsers you get there by right clicking on screen. Make sure you’re not over an image and click INSPECT. Console will open and you can then view selectors for everything.

    • This reply was modified 6 years, 2 months ago by stefsternyc.
    Thread Starter watson926

    (@watson926)

    Thanks
    That is very helpful.

    Sure thing. If you want to only change a specific selector find the parent or use the page id for only that page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing Product Price Currency Font Colour’ is closed to new replies.