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

Prevent Customizer CSS from Loading on the frontend #22

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

s92mike
Copy link
Collaborator

@s92mike s92mike commented Feb 9, 2024

Description/Update

  • Updated enqueue block editor to only add the custom css for block editor by adding is_admin()
  • Added condition if option loadCustomizerCSSFrontend is false then remove wp_custom_css_cb where it add the custom css via frontend it also include in preview.

Issue #21

- Updated enqueue block editor to only add the custom css for block editor by adding is_admin()
- Added condition if option `loadCustomizerCSSFrontend` is false then remove wp_custom_css_cb where it add the custom css via frontend it also include in preview.
@s92mike s92mike added enhancement New feature or request Need Code Review labels Feb 9, 2024
@s92mike s92mike added this to the MVP milestone Feb 9, 2024
@s92mike s92mike requested a review from ronalfy February 9, 2024 14:35
@s92mike s92mike self-assigned this Feb 9, 2024
Copy link
Contributor

@ronalfy ronalfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@ronalfy ronalfy merged commit a616d9c into main Feb 12, 2024
1 check passed
@ronalfy ronalfy deleted the feature/prevent-customizer-css-loading-frontend branch February 12, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Need Code Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants