Skip to main content
A White Pixel
  • WordPress Gutenberg Developer’s Guide
  • Latest Posts
    • WordPress
    • Gutenberg
    • Themes
    • WooCommerce
    • Gravity Forms
    • Advanced Custom Fields

Latest articles

Checklist: 12 Things You Need to Check When Choosing a WordPress Theme

This is a guide in features your new WordPress theme needs to make your website successful in the year 2020. The checklist is relevant for webmasters, individuals, but also developers looking to improve their themes. If you are considering picking a new WordPress theme this year, read on! Keep in mind that the type of […]

Create Custom Gutenberg Block – Part 8: Translation Support

In this part we’ll focus on how to translate the texts and values in our custom Gutenberg block. We use WP-CLI to generate the necessary files so that Gutenberg is able to load our translations when switching the WordPress language. Before going ahead with this, you need to have WP CLI (command-line interface for WordPress) […]

How to Programatically Add a Custom Discount to WooCommerce Checkout

In this post we’ll look at how we add discounts programatically and automatically. To do this we utilize WooCommerce’s coupon functionality but we make it automatic, and we hide the fact that it’s a coupon to the customers. I have tried to keep the code as general as possible as the conditions for applying discounts […]

Create Custom Gutenberg Block – Part 7: Create Your Own Custom Components

So far in this tutorial series we’ve written all code inside registerBlockType()‘s edit function. It’s fully possible, and often recommended to instead assign edit to a separate component. By doing so we can utilize functionality like component state and lifecycle methods. It’s also much cleaner, readable and provides reusable code! If you are not familiar […]

7 Things You Can Do Today to Improve SEO on Your WordPress Site

This is a checklist of 8 things you as a webmaster or owner of a WordPress site can do to improve SEO and search engine ranking in 2020. SEO (Search Engine Optimization) is a set of rules and guidelines for optimizing your website in order to achieve higher ranking in search engines. In today’s digital […]

Create Custom Gutenberg Block – Part 6: Toolbars

In this post we’ll learn how to add WordPress’ toolbars to our block, i.e. for alignment and block alignment. We will also learn to add our own toolbars with our own buttons for doing custom actions. Adding toolbars In order to add something to the toolbar for our block we’ll need to wrap what we […]

Create Custom Gutenberg Block – Part 5: Inspector Settings

In the previous steps we learned the basics of how to render components and attributes in a block. In this step we’ll focus on what WordPress (at least in code) calls Inspector: the sidebar on the right hand side in the editor. We’ll touch upon some new components that make sense to place in the […]

Developer Guide: Using WordPress Gutenberg for Frontpage and Landing Pages

In this post we’ll look at how to utilize the Gutenberg editor to create great-looking and modern frontpages or landing pages. We will especially look at how you as a developer can adjust your theme code to support this. This guide is perfect for you who want to adjust an older theme to support Gutenberg, […]

How to Add Custom Block Styles to WordPress Gutenberg Blocks

A somewhat less known feature in Gutenberg is the option to set up different styles for blocks. You can register as many different styles upon any type of block in order to give the same block different designs. Possible styles for blocks are displayed as a section in the editor’s right hand side. Each style […]

Create Custom Gutenberg Block – Part 4: Attributes

In this part we’ll look at how to define attributes, fetch their values and update them. With attributes we can accept input from the editor, save it and output it however we choose. In the previous step we looked at WordPress components, where to find them and how to implement them. In this post we’ll […]

Posts navigation

« Previous 1 2 3 4 5 6 … 9 Next »

Categories

  • Advanced Custom Fields (7)
  • Gravity Forms (5)
  • Gutenberg (31)
  • Mini Tips (3)
  • Themes (30)
  • WooCommerce (9)
  • WordPress (37)

Newest Posts

  • How to Translate custom Gutenberg Blocks with block.json
  • Creating Custom Gutenberg Blocks with block.json
  • Gutenberg: Updating withSelect and withDispatch into React Hooks (useSelect and useDispatch)
  • How to Add Post Meta Fields to Gutenberg Document Sidebar
  • In-Depth Guide in Creating and Fetching Custom WP REST API Endpoints
  • How to Deprecate Gutenberg Blocks

Tags

admin (5) ajax (2) cpt (4) css (4) filters (10) hooks (12) i18n (3) javascript (28) media (1) menus (6) object-oriented (2) plugin customization (20) post query (5) rewrite url (3) scripts and styles (6) seo (3) theme (17) widgets (3) WP REST API (2)