Hi So i'm trying to make a richtext block where the First line will be a h1, and when u press enter u get to type a pharagraph, I tried using the multiline attribute with a value of "p" but that doesn't work,  I wonder if anyone can h...
I'm trying to implement a block component for the Gutenberg Editor in WordPress. There I want to use the InnerBlocks component which is also used for example for the columns component provided by Wordpress itself.  When I try to start using the c...
I am fairly experienced with PHP and Wordpress theming, but now struggling with the new Gutenberg editor. I have created a custom block plugin, which involves a lot of JS (React). To the latter I am a bit new.  The block is creating a simple wrapper...
I am trying to upload the file via Media Library from Inspect Control in Gutenberg. I am using this code currently in JS :  var el = wp.element.createElement,     registerBlockType = wp.blocks.registerBlockType,     ServerSideRender = wp.components.S...
I have simple Gutenberg block with google fonts select.  el (SelectControl, {        value: fontFamily,     label: __('?????'),     options: [                                           {             value: 'Georgia',             label...
When selecting the "core" store of Wordpress JavaScript API via wp.data.select("core") I get an incomplete list of selectors.     The selector I get are the following:    canUser: ƒ ()    getAuthors: ƒ ()   getEmbedPreview: ƒ ()...
I made a Gutenberg block for my plugin but it doesn't work as expected anymore. It worked with the first version of Gutenberg and I don’t understand what changed since then.  I read some similar questions, but no useful answers:  - Wordpress Gu...
I'd like to add pagination to the latest posts gutenberg block. This block fetches posts through withSelect() and getEntityRecords(), similar to the block editor handbook.  The REST API returns two handy header fields for use in pagination: "...
I am having difficulty modifying or adding additional classes to individual components of wordpress blocks. I essentially just want to add a class or classes to some of the pieces that make up some of the core wordpress blocks to do things like add b...
How to use wp.data.subscribe to Show/Hide a block for a certain Post Format (Audio, Video, and Gallery), I test this code and it's working good BUT it triggered while writing the post content and when select any other option so the target block f...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.