• Resolved girlswithguns

    (@girlswithguns)


    Love the plugin for its simplicity! Used it on multiple sites.

    However, I am having issues on one site with a red theme. Using the wp_cart_display_product shortcode, and the light grey which is used for the name and price is not very legible.

    I’d like to change the color of those two to be (say) black, and would just need to know the CSS code which I’d use for that.

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter girlswithguns

    (@girlswithguns)

    I found how I could change it directly in the plugin CSS, but that’s not ideal, of course. Based on that, I tried to set it by adding the following to the theme CSS

    .shopping_cart .wp_cart_product_name {
        color: #000000
    }
    .shopping_cart .wp_cart_product_price {
        color: #000000
    }

    However, that change doesn’t seem to take effect. Any ideas where I’m going wrong.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, can you share the URL with the product name so that I can take a look.

    Thank you

    Thread Starter girlswithguns

    (@girlswithguns)

    Sure, thanks for the help. It’s here:

    https://azrocky.com/box-office/

    You’ll see the item description and price are hard to read against the page background. I can fix that by editing the plugin and setting:
    color: black
    for the .wp_cart_product_price and wp_cart_product_name items in wp_shopping_cart_style.css. But that’s a bit clunky, and I’d rather use the theme CSS.

    Thanks again!

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi,

    The the following CSS code.

    .wp_cart_product_name {
        color: #f4f5f4;
    }
    .wp_cart_product_price {
        color: #f4f5f4;
    }

    Because of your red background, white seems the be the best color for the text.

    Let me know if the above works for you.

    Thank you

    Thread Starter girlswithguns

    (@girlswithguns)

    Perfect, many thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change text color on wp_cart_display_product’ is closed to new replies.