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

Better Theme Integration #377

Open
mnelson4 opened this issue Jun 2, 2023 · 0 comments
Open

Better Theme Integration #377

mnelson4 opened this issue Jun 2, 2023 · 0 comments

Comments

@mnelson4
Copy link
Owner

mnelson4 commented Jun 2, 2023

I realized I might be able to have themes active while also disabling their CSS.
On setup_theme action, record the styles (and scripts?) enqueued, and which new callbacks were set on init and enqueue_scripts; on after_setup_theme remove them.

This way, we could default to having the theme active, without using its CSS.

Helpful: https://codex.wordpress.org/Plugin_API/Action_Reference

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