srikat / oxygen-sass

A companion plugin to WP-SCSS for working with Sass in Oxygen.
GNU General Public License v2.0
11 stars 3 forks source link

Load compiled stylesheet after Oxygen stylesheets #1

Open ghost opened 5 years ago

ghost commented 5 years ago

Hey Srikat!

Great work, the plugin is working like a charm.

However, some styles are getting overwritten by the Oxygen styles. Putting the stylesheet after the loaded oxygen stylesheet solves the problem, but how do you accomplish this inside plugin.php?

Thanks!

ghost commented 5 years ago

I really can't seem to figure it out. Tried every solution I found on Stackexchange..

add_action( 'oxygen_enqueue_scripts', 'os_enqueue_scripts', 999999999999999999999999999999 );

This should theoretically load wp-sass at the end of the header, right? It is still loaded before the Oxygen styles however..

anton-bergen commented 2 years ago

You should use add_action( 'wp_head', 'os_enqueue_scripts', 1000000 ); instead