GridVids
Sign in with YouTube

How To Design Awesome Product Pages With Gutenberg In WooCommerce

Mark watched
Don't Miss
Hide
Open in popup Open on YouTube

WPCrafter.com WordPress For Non-Techies 5 years ago

I made this video before I came out with my own ecommerce plugin. Check out SureCart, a modern way to sell on WordPress: https://www.wpcrafter.com/surecart

Tired of plain WooCommerce product pages? Design them with Gutenberg, the WordPress block editor. I show you how to switch WooCommerce products to the block editor with one small snippet of code.

Out of the box, WooCommerce products don't use the block editor. Adding the code snippet below to your site turns it on for products, so you can design your product pages with blocks.

The second part of the snippet makes product categories and tags work in the block editor once it's turned on.

Say goodbye to boring product pages and hello to pages that help you sell. This is for WooCommerce store owners who want their product pages to look as good as the rest of their site.

Code Snippet // 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' );

MY PRODUCTS SureCart (ecommerce for WordPress) https://www.wpcrafter.com/surecart SureMembers (memberships) https://www.wpcrafter.com/suremembers SureDash (communities and courses) https://suredash.com/ OttoKit (automation) https://www.wpcrafter.com/suretriggers Presto Player (video) https://www.wpcrafter.com/prestoplayer ZipWP (AI website builder) https://www.wpcrafter.com/zip

RECOMMENDED HOSTING ZipWP Managed Hosting https://zipwp.com/managed-hosting/ Hostinger https://www.wpcrafter.com/hostinger Cloudways https://www.wpcrafter.com/cloudways

What's the first thing you'd add to your product pages with blocks? Subscribe for more WordPress tutorials. All of the opinions expressed in this video are my own, I was not paid to make this video. Whenever there is a link in any of my videos, if there is a referral program available, please assume that you are clicking on a referral link.