Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Blockified Single Product Template: inject the product-specific classes like WooCommerce Core #9686

Closed
Tracked by #8054
gigitux opened this issue Jun 1, 2023 · 0 comments · Fixed by #9697
Closed
Tracked by #8054
Assignees
Labels
type: enhancement The issue is a request for an enhancement.

Comments

@gigitux
Copy link
Contributor

gigitux commented Jun 1, 2023

WooCommerce Core adds product-specific classes on the div wrapper with the function wc_product_post_class (source code).

Currently, the Blockified Single Product Template doesn't add them, and for this reason, it is necessary to do weird workarounds for adding custom styles on specific products woocommerce/woocommerce#42356.

For this reason, we want to append those classes on the body via this filter.

@gigitux gigitux added the type: enhancement The issue is a request for an enhancement. label Jun 1, 2023
@gigitux gigitux self-assigned this Jun 1, 2023
@gigitux gigitux changed the title Blockified Single Product Template: inject the product-specific classes about as WooCommerce Core does Blockified Single Product Template: inject the product-specific classes like WooCommerce Core Jun 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement The issue is a request for an enhancement.
Projects
None yet
1 participant