{"id":10534,"date":"2023-07-26T09:27:00","date_gmt":"2023-07-26T09:27:00","guid":{"rendered":"https:\/\/positiwise.com\/blog\/?p=10534"},"modified":"2023-09-11T08:38:33","modified_gmt":"2023-09-11T08:38:33","slug":"custom-gutenberg-block","status":"publish","type":"post","link":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block","title":{"rendered":"How to Build a Custom Gutenberg Block for WordPress"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Step-by-Step Guide to Creating Custom Block in Gutenberg WordPress<\/h2>\n\n\n\n<p>Custom <strong><a href=\"https:\/\/positiwise.com\/blog\/an-introduction-to-gutenberg-editor-development-in-wordpress\">Gutenberg editor<\/a><\/strong> for WordPress is one of the most advanced editors to create a website using block technology. From saving time to enhancing overall WordPress web design, it helps with all. But, sometimes, its built-in blocks need help to fulfill project requirements. And then comes the custom WordPress Gutenberg blocks.<\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#The_Need_Of_WordPress_Website_Migration\" >The Need Of WordPress Website Migration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#How_To_Migrate_WordPress_Website_Manually_Complete_Procedure\" >How To Migrate WordPress Website Manually: Complete Procedure<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#Step_1_Select_The_New_Host_for_WordPress_Website\" >Step 1: Select The New Host for WordPress Website<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#Step_2_Perform_Complete_Back_Up_Of_WordPress_Site\" >Step 2: Perform Complete Back Up Of WordPress Site<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#Step_3_Execute_WordPress_Database_Backup\" >Step 3: Execute WordPress Database Backup<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#Step_4_Export_WordPress_Database_and_Generate_a_SQL_Database\" >Step 4:Export WordPress Database and Generate a SQL Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#Step_5_Upload_WordPress_Site_Files_on_the_New_Host\" >Step 5: Upload WordPress Site Files on the New Host<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#Step_6_Configure_the_wp-configphp_File\" >Step 6: Configure the wp-config.php File&nbsp;&nbsp;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#Step_7_Update_the_DNS_Domain_Name_Service\" >Step 7: Update the DNS (Domain Name Service)&nbsp;<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#Another_Migration_Method_Migrating_WordPress_Website_With_Plugins\" >Another Migration Method: Migrating WordPress Website With Plugins<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#Why_Avail_of_WordPress_Migration_Services\" >Why Avail of WordPress Migration Services?&nbsp;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\/#Wrapping_Up\" >Wrapping Up<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<p>Custom blocks are seamless to develop and utilize. In this guide, you will understand the process of creating one for your WordPress website. So, let\u2019s get started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Process To Create a Custom Gutenberg Block in WordPress<\/h2>\n\n\n\n<p>In this procedure, we are going to use a plugin for building a custom Gutenberg block in WordPress. Whether you are a beginner or an intermediate in development, the Genesis Custom Blocks plugin can help you streamline the task.<\/p>\n\n\n\n<p>So, to start with the custom block creation, install the Genesis Custom Blocks plugin and activate it. Once you complete the activation, follow the below process to understand custom block development by creating a testimonial block for your <a href=\"https:\/\/en.wikipedia.org\/wiki\/WordPress\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>WordPress<\/strong><\/a> website.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1: Curating The Custom Gutenberg Block<\/li>\n\n\n\n<li>2: Create a Block Template for WordPress<\/li>\n\n\n\n<li>3: Preview and Finalize Custom Gutenberg WordPress Block<\/li>\n\n\n\n<li>4: Start Using The Custom Block<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Curating The Custom Gutenberg Block<\/h3>\n\n\n\n<p>Open the WordPress dashboard, and from the left pane, click on Custom Blocks and then Add New. It will open the block editor page. Again, click on the Add New button available at the top.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"427\" data-id=\"10535\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/custom-blocks-wp.png\" alt=\"Custom Blocks WP\" class=\"wp-image-10535\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/custom-blocks-wp.png 958w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/custom-blocks-wp-300x134.png 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/custom-blocks-wp-768x342.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>After you click on the Add New button on the editor page, set a name for your block. In our case, we have provided the name as Testimonials.<\/p>\n\n\n\n<p>Further, by clicking on the Block, you can open its settings in the right pane to access &amp; configure advanced settings. You can use all the provided settings to configure categories, add keywords, set names, icons, and more.<\/p>\n\n\n\n<p>Now, you can see a block named Testimonials on the interface. It\u2019s time to modify it and make it as per requirements. For this tutorial, we are going to add three different fields to it, namely:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Text area field<\/li>\n\n\n\n<li>Image field<\/li>\n\n\n\n<li>Reviewer Name field<\/li>\n<\/ul>\n\n\n\n<p>So, let\u2019s add them all.&nbsp;<\/p>\n\n\n\n<p>Click on the ( + )plus icon in the lower right corner of the Block. It will open the filed settings in the right pane with the following configuration options:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Field Label: Input any string of your choice in this field.&nbsp;<\/li>\n\n\n\n<li>Field Name: The name will be set as per the field label.\u00a0<\/li>\n\n\n\n<li>Field Type: We are going to use an image block so that we will select an image from the drop-down menu. Similarly, you can select the type as needed.\u00a0<\/li>\n\n\n\n<li>Field Location: Choose the editor or inspector location.&nbsp;<\/li>\n\n\n\n<li>Help Text: Input the description for the field so that others can understand its purpose.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>Once you set the fields for the image for the testimonial block. Then, again, follow the procedure by clicking the ( + ) plus icon and adding the other two fields. Select the correct field type for an output similar to the one below.\u00a0<\/p>\n\n\n\n<p>In addition, you can also use the drag-and-drop feature to rearrange the fields. And if you still need to edit a field, click on it and modify settings in the right panel. Otherwise, click on Publish and save the custom Gutenberg WordPress block.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"427\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/testimonials-fields.png\" alt=\"testimonials fields\" class=\"wp-image-10540\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/testimonials-fields.png 958w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/testimonials-fields-300x134.png 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/testimonials-fields-768x342.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<p>In addition, you can also use the drag-and-drop feature to rearrange the fields. And if you still need to edit a field, click on it &amp; modify settings in the right panel. Otherwise, click on Publish &amp; save the custom Gutenberg WordPress block.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Create Block Template WordPress<\/h3>\n\n\n\n<p>Creating a custom block using the plugin is not enough, as it will only work once you create a template.&nbsp;<\/p>\n\n\n\n<p>A custom block template determines the working of the Block and how it displays the data on the website using HTML, CSS, and PHP. In addition, primarily, you can use the following two methods to create a template:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Built-in Template Editor (For HTML, CSS, and static data)&nbsp;<\/li>\n\n\n\n<li>Manual Template Creation and Configuration (For complex data and PHP-based Block)<\/li>\n<\/ul>\n\n\n\n<p>Let\u2019s understand both methods.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><em>Method #1 Template Creation using Built-in Editor<\/em><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the custom block page and navigate to the Template Editor tab.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>You can edit HTML (Markup) and CSS in the editor tab. You can write your custom HTML\/CSS and add it to the files.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For our Testimonial custom block, add the following HTML.&nbsp;<\/li>\n\n\n\n<li>Switch to the CSS and add the following code block to it.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>The template will be created, and the first method will be completed. Let\u2019s move to the next template creation method if you want to use PHP.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><em>Method #<strong>2:<\/strong> Manual Custom Gutenberg Block Template Uploading<\/em><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On your system containing WordPress, create a folder with the name of your Block. In this case, create a folder with name testimonials.&nbsp;<\/li>\n\n\n\n<li>Generate a file with the name block.php under the folder. In this file, enter the following code.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>In this code, there\u2019s a function called block_field(). It would get used to fetch data and display it on your website. Also, it will take care of the style of your custom WordPress Block. Moreover, you can hire dedicated WordPress developers to create code blocks for your custom Gutenberg block.&nbsp;<\/p>\n\n\n\n<p>Save the file and move further to the next step.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Under the same folder (testimonials), create another file with the name and extension block.css. And after its generation, put the below code in it:&nbsp;<\/li>\n\n\n\n<li>Save the changes to the files.<\/li>\n<\/ul>\n\n\n\n<p>Now, your testimonial folder would have two files \u2013 block.css and block.php.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"329\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/block-template-files.png\" alt=\"block template files\" class=\"wp-image-10544\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/block-template-files.png 958w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/block-template-files-300x103.png 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/block-template-files-768x264.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Upload the Template folder to your WordPress website using an SFTP client called FileZilla. In addition, you can also use the file manager of your hosting provider, if applicable.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Connect to the website and navigate to the following location:&nbsp;<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/wp-content\/themes\/your-current-theme\/<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once you are in the folder, create a new folder inside it and name it blocks.\u00a0<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"401\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/create-blocks-folder-inside-your-wp-theme-folder.png\" alt=\"create blocks folder inside your wp theme folder\" class=\"wp-image-10547\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/create-blocks-folder-inside-your-wp-theme-folder.png 958w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/create-blocks-folder-inside-your-wp-theme-folder-300x126.png 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/create-blocks-folder-inside-your-wp-theme-folder-768x321.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the block folder and upload the testimonials folder inside it.\u00a0<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"385\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/upload-block-template-files.png\" alt=\"upload block template files\" class=\"wp-image-10546\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/upload-block-template-files.png 958w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/upload-block-template-files-300x121.png 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/upload-block-template-files-768x309.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The manual process is completed.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Preview and Finalize Custom Gutenberg WordPress Block<\/h3>\n\n\n\n<p>Previewing is a crucial step involved in creating a custom WordPress block. It helps to finalize the settings and add blocks to the website.<br>From the Editor Previewer tab, input some sample content into the Block.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"447\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/editor-preview.png\" alt=\"editor preview\" class=\"wp-image-10550\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/editor-preview.png 958w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/editor-preview-300x140.png 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/editor-preview-768x358.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<p>Further, click on the Update button to save the changes.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"334\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/save-template-changes.png\" alt=\"save template changes\" class=\"wp-image-10549\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/save-template-changes.png 958w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/save-template-changes-300x105.png 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/save-template-changes-768x268.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<p>After the update, go to the Front-end preview to check how the Block will display on your WordPress website.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"328\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/website-frontend-preview.png\" alt=\"website frontend preview\" class=\"wp-image-10548\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/website-frontend-preview.png 958w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/website-frontend-preview-300x103.png 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/website-frontend-preview-768x263.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Start Using The Custom Block<\/h3>\n\n\n\n<p>After the block creation, template configuration, and preview, you can utilize the Testimonial block on a real-world website.<\/p>\n\n\n\n<p>You can generate a new page or post and even open an old one to edit. Following it, click on the widgets option from the top left corner, and under it, search for your custom block.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"413\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/save-template-changes-testimonials.png\" alt=\"save template changes testimonials\" class=\"wp-image-10556\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/save-template-changes-testimonials.png 958w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/save-template-changes-testimonials-300x129.png 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/save-template-changes-testimonials-768x331.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<p>After finding the custom block, drag and drop it on your webpage or post and input the content you want to display.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"459\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/reviewer-name-testimonial.png\" alt=\"reviewer name testimonial\" class=\"wp-image-10555\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/reviewer-name-testimonial.png 958w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/reviewer-name-testimonial-300x144.png 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/reviewer-name-testimonial-768x368.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<p>Finally, your custom Gutenberg WordPress block is ready. And now you can use it for quick development. In addition, you can follow a similar procedure to create any other custom block &amp; use it on a WordPress website. However, ensure that you create the correct HTML, CSS, and PHP code for it. As a result, within four significant steps, your custom block will be ready to use &amp; publish.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Gutenberg WordPress Editor?<\/h2>\n\n\n\n<p>Gutenberg WordPress Editor is WordPress websites\u2019 primary web page and post editor. It provides an interface to create and edit site pages using different blocks. You can refer to blocks as pre-built layouts.<\/p>\n\n\n\n<p>For instance, if you want to upload an image on a WordPress post, you can use the image block through the Gutenberg editor. And then, you only need to use that Block to upload images without writing any code. Moreover, the best part is that the code of blocks gets maintained automatically in the background.<\/p>\n\n\n\n<p>Therefore, blocks are the fundamental pillars of the Gutenberg editor, and numerous blocks are available by default. However, if any additional block is required, you can create a custom one and add it to the list.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Need for Custom WordPress Block<\/h2>\n\n\n\n<p>Custom WordPress blocks are becoming quite popular. Even every WordPress development company creates it to streamline their content publishing tasks for their customers. In addition, it helps even non-technical persons in a firm to efficiently create a blog or web page layout with a bit of training.<\/p>\n\n\n\n<p>For instance, if you create a custom block that sets the complete layout of the blog, including author bio, main content, title, body, and all other components. Then, someone with some knowledge of WordPress can drag that Block, input data, and publish the blog.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Benefits of Building Custom Gutenberg Blocks<\/h3>\n\n\n\n<p>The benefits of creating custom blocks in Gutenberg WordPress include the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Reduce time in setting up different blocks.<\/li>\n\n\n\n<li>Effortlessly fulfills the requirement.<\/li>\n\n\n\n<li>Enables non-technical persons to use CMS systems with little training.<\/li>\n\n\n\n<li>Aids in aligning block with theme layout and design.<\/li>\n\n\n\n<li>Enhances website appeal and improves productivity.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Why Hire Dedicated Developers For WordPress Web Design and Block Development?<\/h2>\n\n\n\n<p>From WordPress designing to building custom Gutenberg blocks, <a href=\"\/technologies\/wordpress-development\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>WordPress development company<\/strong><\/a> is an important aspect. Such companies have the right hardware, software, and human resources to build custom Gutenberg WordPress blocks quickly. And they also ensure compliance of blocks with WordPress coding and industry standards.\u00a0<\/p>\n\n\n\n<p>In addition, when you hire dedicated WordPress developers, you get free from development, template uploading, and all other tasks. You get the final result of a custom WordPress block that you can use across your websites.&nbsp;<\/p>\n\n\n\n<p>Moreover, you also get the benefit of the following:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Affordable and Quick creation of custom WordPress block<\/li>\n\n\n\n<li>Secure uploading of files&nbsp;<\/li>\n\n\n\n<li>Compliance with WordPress standards<\/li>\n\n\n\n<li>Top-Notch Block, alluring WordPress Web Design<\/li>\n\n\n\n<li>Transparent Process<\/li>\n\n\n\n<li>Development through experienced WordPress developers<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group bg-shaps has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-a666d811 wp-block-group-is-layout-constrained\" style=\"border-radius:5px;background-color:#151e2c;padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)\">\n<p class=\"has-text-align-center fs-2 text-white lh-sm\">Boost Your Online Presence with a Talented WordPress Developer!<\/p>\n\n\n\n<p class=\"has-text-align-center fs-5 lh-base has-base-color has-text-color\">Take Your Online Business to New Heights &#8211; Enlist the Services of a Professional WordPress Developer Today!<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-base-color has-text-color has-background wp-element-button\" href=\"https:\/\/positiwise.com\/technologies\/wordpress-development\" style=\"border-radius:100px;background-color:#ed7923;padding-top:10px;padding-right:30px;padding-bottom:10px;padding-left:30px\">Hire a WordPress Developer for You!<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Concluding Up<\/h3>\n\n\n\n<p>You can use the Genesis custom blocks plugin to create a custom WordPress block. It streamlines the task &amp; makes the block creation streamlined:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install the Genesis plugin and activate it.<\/li>\n\n\n\n<li>From the dashboard, click on Custom Blocks, then under it, choose Add New option.<\/li>\n\n\n\n<li>From the plugin\u2019s interface, provide a name to the Block, add its field, and save the changes.<\/li>\n<\/ul>\n\n\n\n<p>Following it, create &amp; upload the folder containing CSS and PHP files to the website folder through a secure file transfer protocol. You can also directly modify the HTML and CSS from the plugin\u2019s interface in the editor tab. Lastly, preview the Block and use it while creating web pages and posts.<\/p>\n  <div class=\"related-post slider\">\r\n        <div class=\"headline\">Related Posts<\/div>\r\n    <div class=\"post-list owl-carousel\">\r\n\r\n            <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"7  Steps to Customize Your WordPress Website\" href=\"https:\/\/positiwise.com\/blog\/7-steps-to-customize-your-wordpress-website\">\r\n\r\n      <img loading=\"lazy\" decoding=\"async\" width=\"1021\" height=\"621\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/10\/steps-to-customize-your-wordpress-website.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"Steps to Customize Your WordPress Website\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/10\/steps-to-customize-your-wordpress-website.jpg 1021w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/10\/steps-to-customize-your-wordpress-website-300x182.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/10\/steps-to-customize-your-wordpress-website-768x467.jpg 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"7  Steps to Customize Your WordPress Website\" href=\"https:\/\/positiwise.com\/blog\/7-steps-to-customize-your-wordpress-website\">\r\n        7  Steps to Customize Your WordPress Website  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"How To Create WordPress Theme Mobile Responsive?\" href=\"https:\/\/positiwise.com\/blog\/how-to-create-wordpress-theme-mobile-responsive\">\r\n\r\n      <img loading=\"lazy\" decoding=\"async\" width=\"1021\" height=\"621\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/04\/how-to-create-wordpress-theme-mobile-responsive-1-1.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"How To Create WordPress Theme Mobile Responsive?\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/04\/how-to-create-wordpress-theme-mobile-responsive-1-1.jpg 1021w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/04\/how-to-create-wordpress-theme-mobile-responsive-1-1-300x182.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/04\/how-to-create-wordpress-theme-mobile-responsive-1-1-768x467.jpg 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"How To Create WordPress Theme Mobile Responsive?\" href=\"https:\/\/positiwise.com\/blog\/how-to-create-wordpress-theme-mobile-responsive\">\r\n        How To Create WordPress Theme Mobile Responsive?  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"How to Migrate Your WordPress Website: A Comprehensive Guide\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\">\r\n\r\n      <img loading=\"lazy\" decoding=\"async\" width=\"1021\" height=\"621\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-migrate-your-wordpress-website-a-comprehensive-guide-1.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"How to Migrate Your WordPress Website: A Comprehensive Guide\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-migrate-your-wordpress-website-a-comprehensive-guide-1.jpg 1021w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-migrate-your-wordpress-website-a-comprehensive-guide-1-300x182.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-migrate-your-wordpress-website-a-comprehensive-guide-1-768x467.jpg 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"How to Migrate Your WordPress Website: A Comprehensive Guide\" href=\"https:\/\/positiwise.com\/blog\/how-to-migrate-your-wordpress-website-a-comprehensive-guide\">\r\n        How to Migrate Your WordPress Website: A Comprehensive Guide  <\/a>\r\n\r\n        <\/div>\r\n      \r\n  <\/div>\r\n\r\n  <script>\r\n      <\/script>\r\n  <style>\r\n    .related-post {}\r\n\r\n    .related-post .post-list {\r\n      text-align: left;\r\n          }\r\n\r\n    .related-post .post-list .item {\r\n      margin: 5px;\r\n      padding: 0px;\r\n          }\r\n\r\n    .related-post .headline {\r\n      font-size: 2rem !important;\r\n      color: #212529 !important;\r\n          }\r\n\r\n    .related-post .headline {\r\nmargin-top: 0;\r\npadding-left: 1%;\r\n}.related-post .post-list .item .post_thumb {\r\n      max-height: 220px;\r\n      margin: 0px 0px 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n          }\r\n\r\n    .related-post .post-list .item .post_title {\r\n      font-size: 1rem;\r\n      color: #212529;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .post-list .item .post_excerpt {\r\n      font-size: 13px;\r\n      color: #3f3f3f;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .owl-dots .owl-dot {\r\n          }\r\n\r\n      <\/style>\r\n      <script>\r\n      jQuery(document).ready(function($) {\r\n        $(\".related-post .post-list\").owlCarousel({\r\n          items: 3,\r\n          responsiveClass: true,\r\n          responsive: {\r\n            0: {\r\n              items: 1,\r\n            },\r\n            768: {\r\n              items: 2,\r\n            },\r\n            1200: {\r\n              items: 3,\r\n            }\r\n          },\r\n                      rewind: true,\r\n                                loop: true,\r\n                                center: true,\r\n                                autoplay: true,\r\n            autoplayHoverPause: true,\r\n                                nav: true,\r\n            navSpeed: 1000,\r\n            navText: ['<i class=\"fas fa-chevron-left\"><\/i>', '<i class=\"fas fa-chevron-right\"><\/i>'],\r\n                                dots: true,\r\n            dotsSpeed: 1200,\r\n                                                    rtl: false,\r\n          \r\n        });\r\n      });\r\n    <\/script>\r\n  <\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>Step-by-Step Guide to Creating Custom Block in Gutenberg WordPress Custom Gutenberg editor for WordPress is one of the [&hellip;]<\/p>\n  <div class=\"related-post slider\">\r\n        <div class=\"headline\">Related Posts<\/div>\r\n    <div class=\"post-list owl-carousel\">\r\n\r\n            <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"7  Steps to Customize Your WordPress Website\" href=\"https:\/\/positiwise.com\/blog\/7-steps-to-customize-your-wordpress-website\">\r\n\r\n      <img width=\"1021\" height=\"621\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/10\/steps-to-customize-your-wordpress-website.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"Steps to Customize Your WordPress Website\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/10\/steps-to-customize-your-wordpress-website.jpg 1021w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/10\/steps-to-customize-your-wordpress-website-300x182.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/10\/steps-to-customize-your-wordpress-website-768x467.jpg 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"7  Steps to Customize Your WordPress Website\" href=\"https:\/\/positiwise.com\/blog\/7-steps-to-customize-your-wordpress-website\">\r\n        7  Steps to Customize Your WordPress Website  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"How To Create WordPress Theme Mobile Responsive?\" href=\"https:\/\/positiwise.com\/blog\/how-to-create-wordpress-theme-mobile-responsive\">\r\n\r\n      <img width=\"1021\" height=\"621\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/04\/how-to-create-wordpress-theme-mobile-responsive-1-1.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"How To Create WordPress Theme Mobile Responsive?\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/04\/how-to-create-wordpress-theme-mobile-responsive-1-1.jpg 1021w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/04\/how-to-create-wordpress-theme-mobile-responsive-1-1-300x182.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/04\/how-to-create-wordpress-theme-mobile-responsive-1-1-768x467.jpg 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"How To Create WordPress Theme Mobile Responsive?\" href=\"https:\/\/positiwise.com\/blog\/how-to-create-wordpress-theme-mobile-responsive\">\r\n        How To Create WordPress Theme Mobile Responsive?  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"An Introduction To Gutenberg Editor Development in WordPress\" href=\"https:\/\/positiwise.com\/blog\/an-introduction-to-gutenberg-editor-development-in-wordpress\">\r\n\r\n      <img width=\"1021\" height=\"621\" src=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/05\/an-introduction-to-gutenberg-editor-development-in-wordpress-1.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"An Introduction To Gutenberg Editor Development in WordPress\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/05\/an-introduction-to-gutenberg-editor-development-in-wordpress-1.jpg 1021w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/05\/an-introduction-to-gutenberg-editor-development-in-wordpress-1-300x182.jpg 300w, https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/05\/an-introduction-to-gutenberg-editor-development-in-wordpress-1-768x467.jpg 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"An Introduction To Gutenberg Editor Development in WordPress\" href=\"https:\/\/positiwise.com\/blog\/an-introduction-to-gutenberg-editor-development-in-wordpress\">\r\n        An Introduction To Gutenberg Editor Development in WordPress  <\/a>\r\n\r\n        <\/div>\r\n      \r\n  <\/div>\r\n\r\n  <script>\r\n      <\/script>\r\n  <style>\r\n    .related-post {}\r\n\r\n    .related-post .post-list {\r\n      text-align: left;\r\n          }\r\n\r\n    .related-post .post-list .item {\r\n      margin: 5px;\r\n      padding: 0px;\r\n          }\r\n\r\n    .related-post .headline {\r\n      font-size: 2rem !important;\r\n      color: #212529 !important;\r\n          }\r\n\r\n    .related-post .headline {\r\nmargin-top: 0;\r\npadding-left: 1%;\r\n}.related-post .post-list .item .post_thumb {\r\n      max-height: 220px;\r\n      margin: 0px 0px 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n          }\r\n\r\n    .related-post .post-list .item .post_title {\r\n      font-size: 1rem;\r\n      color: #212529;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .post-list .item .post_excerpt {\r\n      font-size: 13px;\r\n      color: #3f3f3f;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .owl-dots .owl-dot {\r\n          }\r\n\r\n      <\/style>\r\n      <script>\r\n      jQuery(document).ready(function($) {\r\n        $(\".related-post .post-list\").owlCarousel({\r\n          items: 3,\r\n          responsiveClass: true,\r\n          responsive: {\r\n            0: {\r\n              items: 1,\r\n            },\r\n            768: {\r\n              items: 2,\r\n            },\r\n            1200: {\r\n              items: 3,\r\n            }\r\n          },\r\n                      rewind: true,\r\n                                loop: true,\r\n                                center: true,\r\n                                autoplay: true,\r\n            autoplayHoverPause: true,\r\n                                nav: true,\r\n            navSpeed: 1000,\r\n            navText: ['<i class=\"fas fa-chevron-left\"><\/i>', '<i class=\"fas fa-chevron-right\"><\/i>'],\r\n                                dots: true,\r\n            dotsSpeed: 1200,\r\n                                                    rtl: false,\r\n          \r\n        });\r\n      });\r\n    <\/script>\r\n  <\/div>\r\n","protected":false},"author":4,"featured_media":10536,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[706],"tags":[],"class_list":["post-10534","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Build Custom Gutenberg Block in WordPress?<\/title>\n<meta name=\"description\" content=\"Learn how to build custom Gutenberg blocks in WordPress with our ultimate guide. Create powerful, unique content effortlessly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/positiwise.com\/blog\/custom-gutenberg-block\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Build a Custom Gutenberg Block for WordPress\" \/>\n<meta property=\"og:description\" content=\"Learn how to build custom Gutenberg blocks in WordPress with our ultimate guide. Create powerful, unique content effortlessly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/positiwise.com\/blog\/custom-gutenberg-block\" \/>\n<meta property=\"og:site_name\" content=\"Positiwise\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/positiwise\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-26T09:27:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-11T08:38:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/build-custom-gutenberg-block-for-wordpress.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1021\" \/>\n\t<meta property=\"og:image:height\" content=\"621\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jemin Desai\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@positiwise\" \/>\n<meta name=\"twitter:site\" content=\"@positiwise\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jemin Desai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block\"},\"author\":{\"name\":\"Jemin Desai\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#\\\/schema\\\/person\\\/c5edd81b0333e026938f30ed21953916\"},\"headline\":\"How to Build a Custom Gutenberg Block for WordPress\",\"datePublished\":\"2023-07-26T09:27:00+00:00\",\"dateModified\":\"2023-09-11T08:38:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block\"},\"wordCount\":1810,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/build-custom-gutenberg-block-for-wordpress.jpg\",\"articleSection\":[\"WordPress Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block#respond\"]}],\"copyrightYear\":\"2023\",\"copyrightHolder\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block\",\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block\",\"name\":\"How to Build Custom Gutenberg Block in WordPress?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/build-custom-gutenberg-block-for-wordpress.jpg\",\"datePublished\":\"2023-07-26T09:27:00+00:00\",\"dateModified\":\"2023-09-11T08:38:33+00:00\",\"description\":\"Learn how to build custom Gutenberg blocks in WordPress with our ultimate guide. Create powerful, unique content effortlessly.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block#primaryimage\",\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/build-custom-gutenberg-block-for-wordpress.jpg\",\"contentUrl\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/build-custom-gutenberg-block-for-wordpress.jpg\",\"width\":1021,\"height\":621,\"caption\":\"build custom gutenberg block for wordpress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/custom-gutenberg-block#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/positiwise.com\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Build a Custom Gutenberg Block for WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/\",\"name\":\"Positiwise\",\"description\":\"Providing Full-cycle Software Development Services\",\"publisher\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#organization\"},\"alternateName\":\"Positiwise Software Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#organization\",\"name\":\"Positiwise\",\"alternateName\":\"Positiwise Software Pvt Ltd\",\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":202,\"height\":29,\"caption\":\"Positiwise\"},\"image\":{\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/positiwise\\\/\",\"https:\\\/\\\/x.com\\\/positiwise\",\"https:\\\/\\\/github.com\\\/positiwise\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/positiwise\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/#\\\/schema\\\/person\\\/c5edd81b0333e026938f30ed21953916\",\"name\":\"Jemin Desai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g\",\"caption\":\"Jemin Desai\"},\"description\":\"Jemin Desai is Chief Marketing Officer at Positiwise Software Pvt Ltd, he is responsible for creating and accelerating the company\u2019s marketing strategy and brand recognition across the globe. He has more than 20 years of experience in senior marketing roles at the Inc. 5000 Fastest-Growing Private Companies.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/jeminseo\"],\"url\":\"https:\\\/\\\/positiwise.com\\\/blog\\\/author\\\/jemin-desai\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Build Custom Gutenberg Block in WordPress?","description":"Learn how to build custom Gutenberg blocks in WordPress with our ultimate guide. Create powerful, unique content effortlessly.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block","og_locale":"en_US","og_type":"article","og_title":"How to Build a Custom Gutenberg Block for WordPress","og_description":"Learn how to build custom Gutenberg blocks in WordPress with our ultimate guide. Create powerful, unique content effortlessly.","og_url":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block","og_site_name":"Positiwise","article_publisher":"https:\/\/www.facebook.com\/positiwise\/","article_published_time":"2023-07-26T09:27:00+00:00","article_modified_time":"2023-09-11T08:38:33+00:00","og_image":[{"width":1021,"height":621,"url":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/build-custom-gutenberg-block-for-wordpress.jpg","type":"image\/jpeg"}],"author":"Jemin Desai","twitter_card":"summary_large_image","twitter_creator":"@positiwise","twitter_site":"@positiwise","twitter_misc":{"Written by":"Jemin Desai","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block#article","isPartOf":{"@id":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block"},"author":{"name":"Jemin Desai","@id":"https:\/\/positiwise.com\/blog\/#\/schema\/person\/c5edd81b0333e026938f30ed21953916"},"headline":"How to Build a Custom Gutenberg Block for WordPress","datePublished":"2023-07-26T09:27:00+00:00","dateModified":"2023-09-11T08:38:33+00:00","mainEntityOfPage":{"@id":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block"},"wordCount":1810,"commentCount":0,"publisher":{"@id":"https:\/\/positiwise.com\/blog\/#organization"},"image":{"@id":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block#primaryimage"},"thumbnailUrl":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/build-custom-gutenberg-block-for-wordpress.jpg","articleSection":["WordPress Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/positiwise.com\/blog\/custom-gutenberg-block#respond"]}],"copyrightYear":"2023","copyrightHolder":{"@id":"https:\/\/positiwise.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block","url":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block","name":"How to Build Custom Gutenberg Block in WordPress?","isPartOf":{"@id":"https:\/\/positiwise.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block#primaryimage"},"image":{"@id":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block#primaryimage"},"thumbnailUrl":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/build-custom-gutenberg-block-for-wordpress.jpg","datePublished":"2023-07-26T09:27:00+00:00","dateModified":"2023-09-11T08:38:33+00:00","description":"Learn how to build custom Gutenberg blocks in WordPress with our ultimate guide. Create powerful, unique content effortlessly.","breadcrumb":{"@id":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/positiwise.com\/blog\/custom-gutenberg-block"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block#primaryimage","url":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/build-custom-gutenberg-block-for-wordpress.jpg","contentUrl":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/build-custom-gutenberg-block-for-wordpress.jpg","width":1021,"height":621,"caption":"build custom gutenberg block for wordpress"},{"@type":"BreadcrumbList","@id":"https:\/\/positiwise.com\/blog\/custom-gutenberg-block#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/positiwise.com\/blog"},{"@type":"ListItem","position":2,"name":"How to Build a Custom Gutenberg Block for WordPress"}]},{"@type":"WebSite","@id":"https:\/\/positiwise.com\/blog\/#website","url":"https:\/\/positiwise.com\/blog\/","name":"Positiwise","description":"Providing Full-cycle Software Development Services","publisher":{"@id":"https:\/\/positiwise.com\/blog\/#organization"},"alternateName":"Positiwise Software Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/positiwise.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/positiwise.com\/blog\/#organization","name":"Positiwise","alternateName":"Positiwise Software Pvt Ltd","url":"https:\/\/positiwise.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/positiwise.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/positiwise.com\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":202,"height":29,"caption":"Positiwise"},"image":{"@id":"https:\/\/positiwise.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/positiwise\/","https:\/\/x.com\/positiwise","https:\/\/github.com\/positiwise","https:\/\/www.linkedin.com\/company\/positiwise"]},{"@type":"Person","@id":"https:\/\/positiwise.com\/blog\/#\/schema\/person\/c5edd81b0333e026938f30ed21953916","name":"Jemin Desai","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/288c332112f4a87cfce31dcb7037bd4d22db699444c717af477ae7726459c4c7?s=96&r=g","caption":"Jemin Desai"},"description":"Jemin Desai is Chief Marketing Officer at Positiwise Software Pvt Ltd, he is responsible for creating and accelerating the company\u2019s marketing strategy and brand recognition across the globe. He has more than 20 years of experience in senior marketing roles at the Inc. 5000 Fastest-Growing Private Companies.","sameAs":["https:\/\/www.linkedin.com\/in\/jeminseo"],"url":"https:\/\/positiwise.com\/blog\/author\/jemin-desai"}]}},"_links":{"self":[{"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/posts\/10534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/comments?post=10534"}],"version-history":[{"count":22,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/posts\/10534\/revisions"}],"predecessor-version":[{"id":13223,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/posts\/10534\/revisions\/13223"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/media\/10536"}],"wp:attachment":[{"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/media?parent=10534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/categories?post=10534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/positiwise.com\/blog\/wp-json\/wp\/v2\/tags?post=10534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}