Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load compiled stylesheet after Oxygen stylesheets #1

Open
ghost opened this issue Dec 13, 2018 · 2 comments
Open

Load compiled stylesheet after Oxygen stylesheets #1

ghost opened this issue Dec 13, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 13, 2018

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
Copy link
Author

ghost commented Dec 14, 2018

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant