Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #546496

    Hi

    I display related products on a single product page. The title (H2) color is black and is it’s define in the Enfold main style.css file. The declaration uses the “!important”. In my custom stylesheet even if I declare the color: #ffffff !important; the Enfold parent theme styling gets precedence. Since I can’t add the inline CSS in this case, how can I get the H2 title to be white instead of black?

    Here’s a link to a product page on my website:
    http://www.herbalhealinginc.com/product/burdock-root-arctium-lappa

    Any help would be appreciated
    Thanks
    Lyse

    #546510

    Hi tremblayly!

    Which one is it? I see the “Product Description” is an H2. If you want to target it then an !important should be working fine.

    .panel h2 { color: white !important; }
    

    Regards,
    Elliott

    #546559

    HI Elliott,

    The Related Products one!

    Thanks
    Lyse

    #546562

    Here are the competing elements

    #top .related.products h2 {
    color: #050402 !important;
    font-weight: bold !important;
    }
    #top .related.products h2 {
    color: #ffffff !important;
    font-weight: bold !important;
    }

    #546679

    Hey!

    The related products use an H3 and it’s already set to black. Can you take a screenshot and highlight what your seeing?

    Cheers!
    Elliott

    #546711

    Hi Elliott

    Here’s a link to the issue and web page taken:
    https://www.dropbox.com/s/77kr9yrfw2wuaeg/related%20product%20heading.jpg?dl=0

    Here’s the link of what I see in Firebug
    https://www.dropbox.com/s/u0r8s74y1sgjoty/related%20product%20CSS.jpg?dl=0

    I see an H2 titlle…

    Thanks
    Lyse

    #547216

    Hey!

    Ok I see now. That’s actually coming from your child theme stylesheet on line 296.

    /* WooCommerce customization */
    /* style added tab for related products */
    #top .related.products h2 {
        color: #050402 !important;
        font-weight: bold !important;
    }

    Perhaps you forgot it was there but you can change the color there or remove it.

    Regards,
    Elliott

    #547266

    Hi Elliott,

    I fixed the duplication and now it works as I want it.

    Thank you for all of your help!
    Lyse

    #547383

    Hi,

    Great, glad we could help :-)

    Thanks,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.