Overriding all other stylesheets
-
This is duplicate post of another wp user.
https://www.ads-software.com/support/topic/overriding-all-other-stylesheets?replies=4
But I don’t know how to do this what they said.
1. Modify each plugin to NOT add styles. Styles are usually added via the wp_enqueue_styles() function or by adding an action to the wp_head hook. You can comment out the appropriate lines.
2. In your themes header.php file make sure that your style sheet is linked AFTER the wp-head function. This way all of the custom styles from the plugins will still be printed, but you styleshhet will “have the last word” and you can make modifications but redefining the style in your themes style.css file.
Can anyone give me example of above ways?
- The topic ‘Overriding all other stylesheets’ is closed to new replies.