Daniel Richards
Forum Replies Created
-
Forum: Plugins
In reply to: [Gutenberg] block.json translation issue@shawnyang I think the new
registerBlockTypeFromMetadatafunction will handle that, and potentially is supported from WordPress 5.8.There’s some info here:
https://github.com/WordPress/gutenberg/pull/30293I’ll check to see if there are any docs.
- This reply was modified 5 years ago by Daniel Richards.
Forum: Plugins
In reply to: [Gutenberg] Image Drag & Drop is broken@moviedebuts Realise it’s been three weeks now, but thought I’d see if you’re still having the issue?
Are you dragging an image file or block? I couldn’t reproduce using 5.7 and the latest Gutenberg version. Does it happen in any post regardless of the existing content?
Forum: Plugins
In reply to: [Gutenberg] Block enqueued files not work with reusable blockThe
has_blockfunction is quite rudimentary, it just runs a regular expression on the post content.In the case of a reusable block, the reusable block’s content isn’t part of the post itself. The reusable block is a post type with its own content and that gets dynamically inserted when your post is viewed.
You could probably also do
has_block('lazyblock/uni-ybox',341)to check the reusable block content.To make it work dynamically would require building an array of all reusable block post ref/ids in a post, and then running
has_blockon each of those.Forum: Plugins
In reply to: [Gutenberg] Setting width of blocks/adding margin@superdep One way to do this is to group your paragraph block (using the options menu from the block toolbar with the three stacked dots). The group block should have a padding option that allows you to make the text narrower.
Forum: Plugins
In reply to: [Gutenberg] G Editor only working after refresh the page> it does not happen at one go, it requests me to save changes and refresh the page.
@kanojia Would you be able to share a screenshot of what this prompt looks like? I think you’ll have to upload to an another service and share a link here, hope that’s ok.
Forum: Plugins
In reply to: [Gutenberg] Gutenberg not saving any post contentHi @jhultqvist, I tested using WordPress 5.7.3, and didn’t see an issue with the heading or paragraph text disappearing when following your steps. Not sure what could be happening here.
What plugins did you have active before you deactivated them, out of interest? And are you using the Gutenberg plugin, or just the block editor that comes with WordPress as standard?
Is there anything about your site that might make it different to a normal WordPress installation, something that might help with trying to recreate the bug?
Hi @monica5,
I did some searching and found this topic where others had experienced the same issue:
https://wordpress.org/support/topic/wordpress-5-4-typeerror-cannot-read-property-dottip-of-undefined/You could try some of the steps mentioned there. If you have a caching plugin active, it could be worth trying to clear the cache of that plugin as well as your browser cache.
Forum: Reviews
In reply to: [Classic Widgets] Block Widgets Bad. Classic Widgets Good.@organicthemes Please do report any issues you come across here:
https://github.com/WordPress/gutenberg/issues/new?template=Bug_report.mdForum: Reviews
In reply to: [Classic Widgets] very good and on time@zgenna7 If you have time, it’d be great if you could report a bug for the problem you had using Gutenberg:
https://github.com/WordPress/gutenberg/issues/new/chooseThe most important part would be the Steps to Reproduce the issue, and it’d be really useful to know which theme you were using and which widget you were trying to add/modify.
Thanks!
Forum: Reviews
In reply to: [Gutenberg] Drag and drop block handles gone?> Yes, they are gone, and I am not using the ‘top toolbar’ mode. The up/down buttons work for just moving up or down but keeping the up/down button pressed and drag does not work either.
@robhoe1965 The drag handle is to the left of the up/down buttons since version 9.1 of the plugin. You shouldn’t need to drag on the up/down buttons themselves.
Forum: Reviews
In reply to: [Gutenberg] Gutenberg’s Team War on Drag n Drop@christianletters Drag and drop from the inserter is coming soon:
https://github.com/WordPress/gutenberg/pull/27669There’s definitely not a war on drag and drop, there have been some improvements to it in recent versions. What version of Gutenberg are you using?
with drag and drop on customizing the site-wide elements like the footer, widget area and the header.
This isn’t part of Gutenberg, so this seems more of a general WordPress criticism. Within Gutenberg there’s a Full Site Editing feature in development (viewing this requires a theme that supports the feature like the ones part of theme experiments—https://github.com/WordPress/theme-experiments), and this will allow drag and drop between areas on a site.
There are also plans to update widgets and menus with block-based editors.
Forum: Reviews
In reply to: [Gutenberg] Drag and drop block handles gone?@robhoe1965 The drag and drop handles aren’t present when using the ‘top toolbar’ mode, but they should be visible otherwise. I don’t think there should be any difference between 9.1 and 9.5.2 though.
Forum: Requests and Feedback
In reply to: WordPress 5.6@spacenews I don’t think anything has changed in WordPress 5.6 in relation to the formatting on the toolbar, there shouldn’t be a need to scroll. Would it be possible for you to share a screenshot to understand the issue better?
Forum: Fixing WordPress
In reply to: 5.6 core-embed/youtube is now core/embed@mrerrand In WordPress 5.6 the embed block was changed to use a new feature called block variations for the different types of embed provider. Now instead of multiple blocks for each type of embed, there’s one embed block.
The youtube variations do have an attribute in the HTML
"providerNameSlug":"youtube", so that might be one way to check for youtube blocks in PHP, but granted that’s not as easy as usinghas_block.Forum: Plugins
In reply to: [Gutenberg] Block templates using Reusable blocks?Gutenberg should perhaps just be able to skip/ignore non-existing blocktypes that are mentioned in the blokc-template array instead of just crashing the entire page, or at least it should offer a response that is clear for a user and doesn’t rely on using the browser’s go back key to return to return to WordPress.
Is that an know issue?
@hanswitteprins Yep, I’d expect the block to be considered ‘missing’ just like if it were added to a post and then the plugin was removed.
I tested though, and you’re right, the template system is less flexible, I’ve made a bug report here to cover the issue:
https://github.com/WordPress/gutenberg/issues/27731