You can change the CSS loading order.
Find the place where WooCommerce enqueues it’s CSS and keep in mind it’s $handle
(name). Search for wp_enqueue_style
.
Then go to theme’s functions.php
and find the place where your theme enqueues it’s CSS.
Now change your theme’s wp_enqueue_style
by adding WooCommerce’s $handle
to $deps
(dependencies) parameter of theme’s wp_enqueue_style
.
After these manipulations WordPress will load theme CSS after WooCommerce CSS, which will become overridable.
For example:
<?php
wp_register_style(
'your-theme-css', // theme CSS handle (name)
get_template_directory_uri() . '/your-theme.css', // theme CSS path
array('woocommerce-css-handle') // dependencies
);
Related Posts:
- WooCommerce change number of columns in the frontpage
- WordPress custom styles in menu page
- Style product detail page with custom CSS in woocommerce
- Set line spacing
- Outline effect to text
- Transition of background-color
- How to add a color overlay to a background image?
- Change color of PNG image via CSS?
- css: how to center box div element directly in center?
- Transitions on the CSS display property
- How to completely remove borders from HTML table
- How to get current screen width in CSS?
- margin-right is not working with my HTML. How can I center my content?
- Overflow Scroll css is not working in the div
- Positioning background image, adding padding
- CSS Box Shadow – Top and Bottom Only [duplicate]
- How to place Text and an Image next to each other in HTML?
- Responsive iframe with max width and height
- Overflow-x not working
- Hexagon shape with CSS3
- CSS selector for first element with class
- Inbuilt style for jquery-ui-datepicker
- Why is style.css not being enqueued?
- How to add a class to ul tags created by the WordPress editor Tinymce?
- Using theme options to change link colours
- How make theme css be first and not plugin css
- When enqueing a stylesheet, is it possible to remove the type attribute? [duplicate]
- One WordPress and database but multiple subdomains
- Collapsible button inside a ul list does work in jsfiddle but not in WP
- wordpress in wamp lan doesn’t load css
- JavaScript added as link/stylesheet
- Is there a default style.css
- How to get a value for admin css color either gray or blue
- CSS style button For WP Login Function in page template
- Adding external stylesheet after ALL other styles
- How can I use PurifyCSS to clean WordPress style.css?
- WordPress Twenty Fourteen Theme Sidebar
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Auto LTR-RTL Text Direction in wordpress post!
- Is there any size difference between single quote ‘ ‘ and double quote ” ” in CSS
- Removing Title From Links to Site
- Admin pages missing css
- WordPress problematic caching
- why this media query is not working / not loading when I put it in child theme?
- Rendering css to screen and debug problem
- How to link theme fonts directory in WordPress CSS?
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- How to Style Primary Menu with Active Class
- Set 3 iframes in a row
- Unable to align my sidebar to the contents section instead of comments
- How to apply next/previous classes to LIs for pagination links?
- Get post format and use it as a CSS class in different spans
- how to prevent all css and javascripts files from loading
- wp_enqueue_scripts and CSS
- Infinite scroll messing up nth:of-type
- Using post_class to style posts indivdually
- Hiding Label via CSS
- Load custom CSS before admin CSS
- Custom CSS is not working?
- Not able to override plugin’s default css rules
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- Twenty Twelve Calender Widget post titles creating disturbance
- CSS/JS files in WordPress
- Combine CSS Files without plugin
- My site on mobile version is not giving responsive view
- Themes conflicts and overrides my WordPress Support widget Plugin styles
- Missing “Additional CSS” option in Customizer
- Adding a new block editor color option to a theme
- check the first login for specific roles
- Trying to make an image a circle in Gutenberg
- How to style a list item when the radio input button within that li is :checked
- adding additional class to get the post thumbnail [duplicate]
- Web Developer Console: “Slow network is detected.” with fonts
- I can not change the background-color value of wp: meta_value of content.xml
- Complex List Field – Gravity Forms
- Creating wordpress admin page panel [Theme Option]
- issues with a slider – investigations with firebug
- My custom theme text and content format
- CSS Changes made, lost mobile functionality
- Display different css or Information based on previous page
- Color Picker – Theme options
- How to edit wordpress native gallery’s css file?
- why css doesnt work when i change my file of wordpress and sql to another computer?
- How to load css files in a specific order
- I need css code to divide my webpage sections into two columns
- Images at the same vertical position in multiple columns
- css .active dropdown selects all links
- background changed after WordPress update
- In which file can I find the custom CSS code I entered?
- Some times CSS not Applying
- CSS does not take effects and it doesn’t show in inspect [closed]
- Add Quicksand for mobile devices
- Hiding site title for Twentyfifteen sidebar on (responsive) desktop display size
- Why is the image in div not displayed in full-size?
- Content expands beyond its column container [closed]
- How enqueue CSS out of theme folder?
- Styling not refreshing for old visitors on WordPress
- Option value not getting updated until page refresh in WordPress
- Import css file from node_modules using @wordpress/scripts
- What is unsafe about this CSS?