Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1370098
    david
    Participant

    Hello,

    i try to make some css changes to woocommerce.
    i use icon under child theme.
    the path on the x theme is :
    /themes/x/framework/css/dist/site/woocommerce/icon.css

    So i made this file under:

    /themes/x-child/framework/css/dist/site/woocommerce/icon.css

    but changes do not take effect..and i do not like to use !important on the main css on every change.
    Please advice.
    Thank you

    #1370151
    Friech
    Moderator

    Hi There,

    Thanks for writing in! That won’t work, unless you enqueue that custom stylesheet (icon.css) of yours.

    Instead of adding another stylesheet for your site to request, please add your Custom CSS on the child theme’s style.css file.

    Hope it helps, Cheers!

    #1371338
    david
    Participant

    Thanks
    Did.
    The problem is that on most cases the priority still is on the icon.css that sits in the parent theme and not on my child theme style.css
    Is this the case ?
    Thank you

    #1371522
    Friech
    Moderator

    Hi There,

    No it should not. If your custom CSS on the child theme’s style.css file did not able to overrule the default style from stack css (icon.css) that means your selector is not specific enough. Read more about CSS Specificity here.

    Hope it helps, Cheers!

    #1371868
    david
    Participant

    Thank you

    #1371933
    Paul R
    Moderator

    You’re welcome! 🙂

  • <script> jQuery(function($){ $("#no-reply-1370098 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>