¨Hi,
Can I get the product pages to become more like Gutenberg editor with Rehub?
Background:
I am making the product page https://www.blackfridayoversikten.no/produkt/helena-rubinstein-lash-queen-mascara-feline-blacks/ at the price comparison site www.blackfridayoversikten.no
The possibility to easy create awesome WooCommerce product description is limited compared to post and pages since the Gutenberg Editor does not work.
I contacted WooCommerce (https://wordpress.org/support/topic/gutenberg-editor-for-product-pages-2/#post-15344936) and they updated me about WooCommerce Blocks plugin. Is that a good solution when working with Rehub to get Gutenberg options in WooCommerce pages?
Do I understand it correctly that Greenshift will make the product pages more ¨Gutenberg¨ like or will there still be a need for something more to easy create Gutenberg/WooCommerce blocks on the product pages.
I have also learnt that one can paste a code to get Gutenberg into the product page, is that a good solution?
Code Snippet (Source: https://www.youtube.com/watch?v=SaPdeKlqf1o)
// enable gutenberg for woocommerce
function activate_gutenberg_product( $can_edit, $post_type ) {
if ( $post_type == 'product' ) {
$can_edit = true;
}
return $can_edit;
}
add_filter( 'use_block_editor_for_post_type', 'activate_gutenberg_product', 10, 2 );
// enable taxonomy fields for woocommerce with gutenberg on
function enable_taxonomy_rest( $args ) {
$args['show_in_rest'] = true;
return $args;
}
add_filter( 'woocommerce_taxonomy_args_product_cat', 'enable_taxonomy_rest' );
add_filter( 'woocommerce_taxonomy_args_product_tag', 'enable_taxonomy_rest' );
Kindly advice.
Noted, with thanks.