Skip to content

fix: dequeue some Woo styles from the theme#401

Merged
laurelfulford merged 1 commit intotrunkfrom
fix/dequeue-woocommerce-styles
Jan 29, 2026
Merged

fix: dequeue some Woo styles from the theme#401
laurelfulford merged 1 commit intotrunkfrom
fix/dequeue-woocommerce-styles

Conversation

@laurelfulford
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

This PR dequeues Woo's general styles and its block theme styles so they don't override/interfere as much with the My Account styles.

See NPPD-1124

How to test the changes in this Pull Request:

This one's a little tough to test because while it makes My Account look closer to right, it won't fix every issue.

  1. Apply this PR.
  2. Set your test site to use My Account v1 (define( 'NEWSPACK_MY_ACCOUNT_VERSION', '1.0.0' );)
  3. As a reader, view the My Account screens and confirm they look close-ish to how they look with the Classic theme. You can also compare them to how they look in the block theme before this PR.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves compatibility between the Newspack Block Theme and WooCommerce's My Account screens by removing WooCommerce's default styles that interfere with the theme's styling. The changes specifically target WooCommerce's general styles and block theme styles, preventing them from overriding the My Account v1 interface styling.

Changes:

  • Added method to dequeue WooCommerce block theme styles
  • Added filter callback to remove WooCommerce general styles from the enqueue array

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@laurelfulford laurelfulford merged commit 821f81c into trunk Jan 29, 2026
13 checks passed
@laurelfulford laurelfulford deleted the fix/dequeue-woocommerce-styles branch January 29, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants