Hi there, I want to make some design changes to my shop page, since it has only one product, it does not look good.
I have read this topic about integration of woocommerce in generate blocks
https://generatepress.com/forums/topic/generate-blocks/
Here GP support wrote:
You can enable the Gutenberg editor on Single Products like so:
// WP 5.0 Woo 3.4.1 or later
// Edit Woo Product with Gutenberg
function db_enable_gutenberg_single_product($editable, $post_type) {
if($post_type == 'product'){
$editable = true;
}
return $editable;
}
add_filter('use_block_editor_for_post_type', 'db_enable_gutenberg_single_product', 10, 2);
But the shop page, is a custom link page, with no blocks. If I add a product block then I have two of the same product on the page, the product generated by the custom link, at the one generated in my block.
So how can code aimed at products added as blocks be used to edit products on the product page, which are not added as blocks?
Hope my question makes sense 😉
Thanks