How to center entire columns on a page, and have it stay responsive?
How to center entire columns on a page, and have it stay responsive?
How to center entire columns on a page, and have it stay responsive?
Add a class to the block Then you can use css to set width for that block like so: .your-block-class { width: 70%; } Add the above css code to your themes custom CSS field or the style.css file in appearance>theme editor. Make sure your using a child theme if you do the later. And … Read more
I just found out the reason. It’s because I’m using ACF Pro as Blocks. The data will be written in database in json format, and the urls will escape all the slashes ad double quotes. So for example src=\”http:\/\/dev.example.com\/website\/wp-content\/uploads\/2019\/10\/identity.jpg\” So I should add a row like this: update wp_posts set post_content = replace(post_content,’http:\/\/dev.example.com\/website’, ‘http:\/\/www.website.com’);
.wp-block { max-width: unset; } If it is your custom block add to editor_style . If not include css file with hook enqueue_block_editor_assets
How to activate a new prop that a block introduces in a new release?
Gutenberg is an editor, it’s not an active process that runs in the background. Unless you opened the post in the block editor there is no way for it to modify the HTML Think of it this way, a PDF is a PDF, it’s content, data. If I create it with one application, then copy … Read more
Gutenberg – dynamically created element: how to set onChange?
I figured it out by reading up the React docs. Now I use the edit component’s own state to store the media file retrieved from REST, and the function to make the REST request is now within the edit component. I don’t need a withSelect any more. This is a nicer approach to the one … Read more
I want the title of the block to show after it’s been added so that they can see which blocks have been used. This information is already available and displayed in multiple places, for example When hovering over a block: In the sidebar when the block is selected: In the breadcrumb bar at the bottom: … Read more
Two content editors (gutenberg blocks) on the same page