Ensure .less file is included last
-
I would like to use a custom.less file to override CSS definitions in my acquired theme. I know I can include a “!important” parameter on each CSS definition, but I would rather force the custom.less file to be included as the last stylesheet. I have tried using the add_action command in my theme’s functions.php file with a priority of 99. The custom.less file is included just fine, but is not the last stylesheet included. How can I force the compiled .less file to be the last stylesheet? I have thought about modifying the header.php file to enter the stylesheet reference there, but wasn’t sure how to do this with wp-less.
Many thanks for any help!
Jim
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ensure .less file is included last’ is closed to new replies.