Hi there! We haven’t heard back from you for a while now so we’re going to go ahead and set this topic as resolved. Feel free to reply if you’ll need any more help.
Thread Starter
kubiq
(@kubiq)
Have you fixed this already?
You didn’t respond and you just mark this resolved, because I’m not responding to myself?
Should i do a monologue to keep this alive or what? π
Oh sorry about that and sorry no one was able to respond to this. π
To clarify, when you create new GB Blocks, does the error log appear for them as well?
Thread Starter
kubiq
(@kubiq)
It’s happening mostly in Block manager plugins, but if you take a look on my screenshots above, then you can see where exactly is the problem – it’s only in Image block as I wrote… just add title in there, like you have in any other block and it will be fixed π
Problem is, that without this title the Image block from your plugin will be not displayed in Block managers, so it can not be disabled.
I see. Thank you for clarifying. I’ll mention it to our team.
Plugin Author
Tom
(@edge22)
Very strange, this block uses block.json where the title is defined, which is why you can see the title in the actual editor when adding it to your content.
It’s possible that these block managers aren’t able to (or just aren’t) parsing block.json, so we’ll go ahead and add the title to the registerBlockType function as well.
Thanks!
Thread Starter
kubiq
(@kubiq)
According to your SVN you actually don’t use block.json
Only block that use it, is that image block.
https://plugins.svn.ww.wp.xz.cn/generateblocks/trunk/src/blocks/
and there you have in index.js
registerBlockType( 'generateblocks/image', {
icon: getIcon( 'image' ),
attributes,
edit,
save,
transforms,
} );
so, the first item before icon should be title or you can try something like this to load automatically all needed attributes:
registerBlockType( 'generateblocks/image', {
...metadata,
icon: getIcon( 'image' ),
attributes,
edit,
save,
transforms,
} );
Plugin Author
Tom
(@edge22)
Hi there,
We’ve added the title in GenerateBlocks 1.7 which is currently in testing: https://generateblocks.com/flexbox-sizing-tabs-accordions-more/
Thanks!
Thread Starter
kubiq
(@kubiq)
Yes, I can confirm that this solved the problem π
Thank you