WooCommerce Product Page Design with Gutenberg

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ค. 2024
  • Learn how to create WooCommerce Product Page Design with Gutenberg & WordPress.
    If you're fed up with having boring WooCommerce Product Page Design's and want to have a little more creative freedom, then this guide will show you how. Learn how to enable the Gutenberg editor in WooCommerce and start taking advantage of all the great tools you have at your disposal.
    In this video, I'll show you how to enable the Gutenberg block editor in WooCommerce and how to build more feature-rich product pages with Stackable Blocks - a free block bundle that has tons of great features as well as some excellent free blocks to help you get started.
    The tools covered in this video:
    - Stackable (Free) - wpstackable.com/
    - Stackable Pro - jo.my/stackable
    - Blocks Navigation - woo.wpprowebsite.com/wp-admin...
    - Blocksy Theme - creativethemes.com/blocksy/
    - Blocksy Pro - jo.my/y67ten
    New to WooCommerce? Watch my in-depth tutorial on building an entire eCommerce website with WooCommerce, Blocksy and Gutenberg for free. • WordPress eCommerce We...
    ENABLE GUTENBERG
    // 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' );
    REMOVE DESCRIPTION HEADING
    // Remove the product description Title
    add_filter( 'woocommerce_product_description_heading', '__return_null' );
    Take your WordPress website and skills to the next level!
    ► THE TOOLS I LOVE ◄
    If you like what we do and would like to support us, please consider using these affiliate links when purchasing any of the plugins covered in our tutorials. Thank you for your support.
    ► EXCLUSIVE WPTUTS DISCOUNTS ◄
    ✅ WPVivid Backup Pro: jo.my/vividpro (use WPTUTS30 for 30% off)
    ✅ Project Huddle: jo.my/etafyp (WPTUTS for 20% off - Exclusive)
    ► MY PREFERRED HOSTING PROVIDERS ◄
    ✅ CloudWays: jo.my/1feeng8
    ✅ SiteGround: jo.my/sgwptuts
    ► WORDPRESS VISUAL PAGE BUILDERS ◄
    ✅ ELEMENTOR PRO: jo.my/1s0t2s2
    ✅ Brizy Pro: bit.ly/2Ji97r8
    ✅ DIVI 3 Page Builder: bit.ly/2HiiDcE
    ► WORDPRESS THEMES ◄
    ✅ GeneratePress Premium: bit.ly/2Ydn1SE
    ✅ OCEANWP: bit.ly/2fRHBr0
    ✅ DIVI Theme: bit.ly/2G8JMiA
    ✅ Astra Pro: bit.ly/2zruoKn
    ► WORDPRESS TOOLS ◄
    ✅ SMART SLIDER 3: bit.ly/2G0G1vB
    ✅ CSSHERO: bit.ly/2qbrRl6
    ► WORDPRESS PLUGINS ◄
    ✅ SEOPress Pro: jo.my/seopress
    ► SUBSCRIBE ◄
    bit.ly/2rX7rhu
    ► LETS CONNECT: ◄
    👉 Twitter: / wptutz
    👉 Facebook Group: wptuts.co.uk/facebook
    SUPPORT: Our website offers additional information and perks. Please check it out! wptuts.co.uk
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 93

  • @royahmariechannel
    @royahmariechannel ปีที่แล้ว +1

    I literally spent DAYS trying to find this answer. Thank you SO much for this.

  • @nirajsuryawanshi9113
    @nirajsuryawanshi9113 ปีที่แล้ว +2

    Thank you so much. It worked. This is the first time I am making a website for my small business. Your tutorials are helping a lot. You are great.

  • @ancientimmie
    @ancientimmie ปีที่แล้ว

    Paul, thank you so much for making all these tutorials. They have gotten my little e-Commerce site a more uniform look. I've learned quite a bit and I'll probably learn a lot more.

  • @ufo069
    @ufo069 3 ปีที่แล้ว +1

    Paul, this is what I was looking for! Thank you.

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว +1

      My pleasure :)

  • @portuguesepedia
    @portuguesepedia 3 ปีที่แล้ว +1

    Hi, awesome content and very useful. Thank you for taking the time to create these videos ✨

  • @odintech3692
    @odintech3692 2 ปีที่แล้ว +1

    Thanks for this tutorial !!!

  • @SharonShaked
    @SharonShaked 3 ปีที่แล้ว

    this is a good starting point, but templating and dynamic content is a must.

  • @unimkeabana7703
    @unimkeabana7703 3 ปีที่แล้ว +1

    Thank you so much for this

  • @MiegoAmbasadorius
    @MiegoAmbasadorius 2 ปีที่แล้ว

    Amazing, thanks!

  • @dinukakularathna2824
    @dinukakularathna2824 2 ปีที่แล้ว

    Great video. Thank you!

  • @marknasri3490
    @marknasri3490 3 ปีที่แล้ว +1

    thanks for giving us so much

  • @zannakristal3754
    @zannakristal3754 3 ปีที่แล้ว +1

    Paul Thankyou so very much your videos are amazingly ..awesome..👏✨✨✨🔥🔥

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว

      My pleasure 😁

  • @JanKratochvilcom
    @JanKratochvilcom 2 ปีที่แล้ว

    Great, thank you so much!!!

  • @alinaseri7951
    @alinaseri7951 2 ปีที่แล้ว

    very handy. Thank you.

  • @Seanyy
    @Seanyy ปีที่แล้ว

    You are a scholar my good sir thank you!!!!

  • @claudett97
    @claudett97 3 ปีที่แล้ว +3

    Hey! great video!! I was wondering if there is a way to make this custom product page for all products with the click of a botton instead of editing each product one by one

  • @DarronThevarajah
    @DarronThevarajah 2 ปีที่แล้ว

    this is a great step to customising the woocommerce e-shops. Do you know if you can (with another snippet) add Guttenberg capabilities to category and subcategory pages

  • @vwtourandtransportbali6555
    @vwtourandtransportbali6555 3 ปีที่แล้ว +1

    thq for the video bro ...

  • @SimonWYHuang
    @SimonWYHuang 3 ปีที่แล้ว +1

    How's the loading speed compare to using Elementor page builder to edit?

  • @Innovationwork
    @Innovationwork 2 ปีที่แล้ว

    this video really helped me to improve my website

  • @hopepastures6424
    @hopepastures6424 ปีที่แล้ว

    Thanks for another great video. I seem to be having a problem with the code, it works ok but when editing a product page, the page goes behind the black woo sidebar now, and not up to it. What am I doing wrong?

  • @brussardo
    @brussardo ปีที่แล้ว

    Thank you

  • @JulianSong
    @JulianSong 3 ปีที่แล้ว +1

    Wonder is that possible for Product Short Description.

  • @dazman88
    @dazman88 2 ปีที่แล้ว

    Is there a way to do this with other woocommerce templates, like checkout or Pay order page?

  • @michaelfoerster3364
    @michaelfoerster3364 3 ปีที่แล้ว

    Awesome, thanks for the great video. Please show us also a way to use this for the product category pages.... :)

  • @oompaAIDS
    @oompaAIDS 2 ปีที่แล้ว +1

    The code could have a problem because the short description only appears in html mode, any thoughs?

  • @xyzzzzzzdkdk
    @xyzzzzzzdkdk ปีที่แล้ว

    Thanks

  • @jeffreyhuen
    @jeffreyhuen 2 ปีที่แล้ว +1

    Seems this code snippet no longer works in Wordpress 5.8…

  • @mdrdemode4480
    @mdrdemode4480 3 ปีที่แล้ว

    Paul, great video as always. I learned so much but still learning. Thank you.
    Any thoughts how long before we see some real Gutenberg theme builder? Something similar to Elementor theme builder where you can take control over every aspect of webpage. I'm really looking forward to that momoent.

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว

      My understanding is that full site editing is in the latest beta releases and I can't imagine it will be too much longer before that starts to roll out. I'd say that by the end of the year, we'll have control over those aspects of the design in Gurenberg.

  • @bassman601
    @bassman601 2 ปีที่แล้ว

    What if you want that block to be above the product data?

  • @danielrindraniaivo1553
    @danielrindraniaivo1553 ปีที่แล้ว

    Hi Paul! I have a question that may be out of date anyway!! nowadays doing this with elementor isn't still possible? thks

  • @davidalexander9895
    @davidalexander9895 2 ปีที่แล้ว

    Hey there, great video this is a really cool way to make product pages more interesting. I think I ran into one issue though. When using Gutenberg on a product page, I can't turn on reviews. If I go to enable reviews it checks and then I update the product and come back and it's unchecked again. Can anyone else replicate that?

  • @piratebasscaptain
    @piratebasscaptain 2 ปีที่แล้ว

    Hey hi there, nice tutorial as always and very hot topic as well. I like very much Gutenberg and I avoid PB for the classic bloat they add.
    Quick question, do you know why WooCommerce have not implemented yet Gutenberg on product pages ? Is any reason , maybe a bug or so ?

    • @WPTuts
      @WPTuts  2 ปีที่แล้ว

      No idea, but you can enable it. I've created a tutorial on it.

    • @rickonvb
      @rickonvb ปีที่แล้ว

      Yeah... I also am concerned about compatibility .... why. didn't WooCommerce implemented it yet?

  • @malaga16
    @malaga16 2 ปีที่แล้ว

    With the last update (WP and WC too) not working anymore this snippet. :-(
    I see in gutenberg editor in long description. Its good. I save the product, view it, but nothing. If i go back to the editor, gone all of description, like has not saved it. :-(

  • @allanguimaraes
    @allanguimaraes 2 ปีที่แล้ว

    I appreciate to know how to make the same, activate Gutenberg Editor, for some taxonomies, like Product Categories, Brands, etc.

  • @seoathlet2199
    @seoathlet2199 2 ปีที่แล้ว

    heay......... thank you! :DI was looking for this......
    I wanted to edit the area without elemetor.... because of pagespeed optinmierung........
    Thank you so much

  • @matlacky
    @matlacky ปีที่แล้ว

    Thank you Paul. This worked great (Exerpt from Coding for Dummies: Do not left the empty line on the ending :))
    But when I want to change the main Product image - I don't know how. There's a Gallery product available, but I'm not able to replace the main image. Can anybody help?

  • @matthewhellier5898
    @matthewhellier5898 3 ปีที่แล้ว

    Works great except the short description jumps to side bar (in editor) and cannot use in visual mode - any work around?

  • @f2fcoil
    @f2fcoil 3 ปีที่แล้ว

    Thanks!
    Two questions:
    1. Why not place the code on the child theme function.php?
    2. Is working with Gutenberg on the product page any different than using Elementor?

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว +1

      1. You absolutely can, but this was aimed at those a little less confident editing WordPress files and want an easy way to enable the feature.
      2. I would generally say speed is the key! We all know that Elementor adds additional weight to a website and not everyone wants to use a PB just to make design changes to a single page (e.g. the product page).

    • @f2fcoil
      @f2fcoil 3 ปีที่แล้ว

      @@WPTuts Thanks 🙏

  • @HaifengZhu-pn3uq
    @HaifengZhu-pn3uq ปีที่แล้ว

    I used your method, however, the product title doesn't display when I edit that product page on the front end, other things are okay

  • @bettegarui9335
    @bettegarui9335 ปีที่แล้ว

    But when I add this code, I can't preview any changes in the product page, do you know what's going on?

  • @MuhammadAnasA
    @MuhammadAnasA ปีที่แล้ว

    Hello nice info, I want knw how to enable short description too.

  • @victorrenevaldiviasoto9728
    @victorrenevaldiviasoto9728 3 ปีที่แล้ว +1

    This sounds tasty to combine with Crocoblock's repeaters and some Custom CSS

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว +1

      Hmmm now I hadn't considered that aspect. 🤔

    • @victorrenevaldiviasoto9728
      @victorrenevaldiviasoto9728 3 ปีที่แล้ว

      @@WPTuts I was doing it with Elementor to add Chips with tags, campaigns and custom attributes.
      Now, I think that Crocoblock + Gutenberg & Editorskit you can achieve almost the same, with a ton less of bloat.

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว +1

      @@victorrenevaldiviasoto9728 it certainly sounds like something to look into in a little more detail for sure.

  • @danh102
    @danh102 3 ปีที่แล้ว

    Comments tab not showing when doing like you ?
    How Fix it ?

  • @EdgarasBendikas
    @EdgarasBendikas 28 วันที่ผ่านมา

    Tried to activate the php code and getting this Error message: syntax error, unexpected DESCRIPTION (T_STRING)

  • @petermason7743
    @petermason7743 3 ปีที่แล้ว +1

    Excellent.
    Do you need you use a child theme when adding the code?

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว

      If you intend to directly add the code to the functions.php file, I would generally recommend a child theme.

    • @petermason7743
      @petermason7743 3 ปีที่แล้ว +1

      Thank you for your reply. So by using the plugin and code you have shown in your tutorial it is not necessary to use a child theme. I am not confident about adding code to the php file.

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว

      @@petermason7743 no problem at all. Yes, that's right. If you use the Code Snippets plugin it means you don't need to touch any of the WordPress or theme files and don't need to use a child theme. 👍

  • @allanknudsen2616
    @allanknudsen2616 3 ปีที่แล้ว +1

    Sure, you can build a nice description area, but you really would want to customize the layout of the product page with Gutenberg. That, would be awesome. I guess we will come there someday. Nice video though 👍

    • @jamiewp
      @jamiewp 3 ปีที่แล้ว

      Hi, the WooBuilder Blocks plugin lets you do this already

    • @allanknudsen2616
      @allanknudsen2616 3 ปีที่แล้ว +1

      @@jamiewp Thanks soo much, I have totally missed that one. Seems like a great plugin. Appreciate the tip🙏

    • @jamiewp
      @jamiewp 3 ปีที่แล้ว

      @@allanknudsen2616 my pleasure :)

  • @gavinwehlburg8084
    @gavinwehlburg8084 3 ปีที่แล้ว

    Hi Paul, is this possible to do for Elementor as the Editor?

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว

      I believe so, yes. You'd need to enable it in the Elementor settings. 👍

    • @xristoschrisp
      @xristoschrisp 3 ปีที่แล้ว

      @@WPTuts that is a good idea .... how can i use elementor in the product page?

  • @openedto
    @openedto 3 ปีที่แล้ว

    Can I ask why you're using code to enable Gutenberg, when it's already a part of Wordpress?
    I'm just wondering I don't get it. Just starting out. :)

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว

      By default, Gutenberg isn't enabled in WooCommerce, so this code enables it.

  • @brunogarnierklein6404
    @brunogarnierklein6404 2 ปีที่แล้ว

    Something is very strange and frustrating . All the images or videos blocks are 300px wide. Heading and paragraphs are fine. I am using Oxygen with Oxyninja, but my other sites with same setup are fine. Anyone could help?😁

  • @rabeezley
    @rabeezley 3 ปีที่แล้ว

    Great Video... I was able to get the description section designed. Can you modify the default things above the description; excerpt, featured image, add to cart button without something like Elementor? Can this be done with Gutenberg?

    • @jamiewp
      @jamiewp 2 ปีที่แล้ว

      check out woobuilder blocks - this lets you design the entire product page using gutenberg

    • @rabeezley
      @rabeezley 2 ปีที่แล้ว

      @@jamiewp I tried a few weeks ago, but you want a card credit even though I just want to use my PayPal balance...

  • @silentphil77
    @silentphil77 3 ปีที่แล้ว +1

    first woo

  • @ilyasahmad5319
    @ilyasahmad5319 3 ปีที่แล้ว

    please upload custom product page using flatsome theme

  • @BlaMaPio
    @BlaMaPio ปีที่แล้ว

    Your solutions removes "Catalog visibility" options :(

  • @medbkl1746
    @medbkl1746 ปีที่แล้ว

    it doesn't work anymore, any update

  • @johnfairest
    @johnfairest 3 ปีที่แล้ว +2

    There is a need to make woocommerce products more attractive to the users

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว +1

      Absolutely, and this is a good starting point for sure 👊🏼

  • @the_indrid_cold
    @the_indrid_cold 2 ปีที่แล้ว

    But ratings in backend doesn't work :)

  • @TomRobakCom
    @TomRobakCom ปีที่แล้ว

    Doesn't work with WordPress 6.x

  • @Rob-ib8xw
    @Rob-ib8xw 14 วันที่ผ่านมา

    !!!! This code does not save variations when saving the product (post) !!!!!

  • @jaimegutierrez4788
    @jaimegutierrez4788 3 ปีที่แล้ว

    I named it the Wootenberg Editor

  • @rahulrrun7730
    @rahulrrun7730 3 ปีที่แล้ว

    Hi try bootstrap studio and build a website

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว

      Why?

    • @rahulrrun7730
      @rahulrrun7730 3 ปีที่แล้ว

      Try it once you will become fan of it and I think there are not more content on bootstrap studio than wordpress so u can develop your channel too

  • @MarcelHeiniger
    @MarcelHeiniger ปีที่แล้ว

    look like no more working ;-(

  • @catmay5723
    @catmay5723 ปีที่แล้ว +1

    No longer works.

  • @doodarkduck4576
    @doodarkduck4576 3 ปีที่แล้ว

    No Sub ?

    • @WPTuts
      @WPTuts  3 ปีที่แล้ว

      Sorry, what?

    • @doodarkduck4576
      @doodarkduck4576 3 ปีที่แล้ว

      @@WPTuts Sorry , I mean subtitles .Every clip of you will have a subtitle

  • @laseruser_com
    @laseruser_com 2 ปีที่แล้ว

    Hi Paul, The code brought up the following error for my site (I've removed site particulars): Don't Panic
    The code snippet you are trying to save produced a fatal error on line 111:
    Uncaught Error: Object of class WP_Error could not be converted to string in /home/customer/xxxxxxxxxxxx/public_html/wp-content/plugins/sg-security/templates/error.php:111 Stack trace: #0 etc....
    The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.
    Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.