Tagged: x
-
AuthorPosts
-
March 26, 2017 at 12:35 pm #1420763
eyediaParticipantI’m trying to over write some things in my child theme stylesheet, but I am not able to with woocommerce elements. I want it to use the woocommerce style first and then my custom styles to over write where needed. Please let me know what I’m missing to achieve this.
Thank you
March 26, 2017 at 9:00 pm #1421086
Rue NelModeratorHello There,
Thanks for writing in! Before anything else, please understand first the order of the styles being implemented in X.
– Global Stylesheet (X Stack style)
– Child theme’s style.css
– Customizer’s custom css
– Cornerstone’s custom cssAnd so if you want to place your customizations in the child theme, most probably, it is being overridden by the customizer’s custom css. To avoid this from happening, you must use css selector hierarchy. It looks like this:
.x-child-theme-active element { // your styling }By adding the
x-child-theme-activeclass will make sure that your custom css will be followed and not the custom css you have in the customizer that has only this code:element { // your styling }Hope this make sense.
March 26, 2017 at 11:10 pm #1421146
eyediaParticipantPerfect! Makes total sense! Thank you so much for your very clear explanation. I now have all my custom wooCommerce CSS loading with priority.
🙂
March 27, 2017 at 1:46 am #1421253
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1420763 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
