JohnDBB
Forum Replies Created
-
Thank you!
Forum: Developing with WordPress
In reply to: Override core block in WordPress 5.5Hello, solved. I just needed to add unregister_block_type before registering it.
Forum: Plugins
In reply to: [W3 Total Cache] AMP posts not being refreshed after editedHi Marko,
May I send the url privately to you, please?
Regarding the settings, we have AMP URL Type: tag and for AMP URL Postfix we have amp (without any slash)
Thank you in advance
Forum: Plugins
In reply to: [W3 Total Cache] AMP posts not being refreshed after editedHi Marko,
I cannot purge all cache because it’s a site with a lot of traffic ((
Regarding the url type, it’s /amp/ at the end of the url.
Best,
Forum: Plugins
In reply to: [W3 Total Cache] AMP posts not being refreshed after editedHello Marko, and thank you for your prompt answer
Yes, we have enabled the AMP extension. I have tried manually purging the post, but the AMP version doesn’t update.
Best,
Forum: Plugins
In reply to: [Gutenberg] Extend columns blockBy the way, t only works with wordpress 5.4
Forum: Plugins
In reply to: [Gutenberg] Extend columns blockThank you Paal!
I needed it programatically. Yes, I got it doing something like this:
wp.blocks.registerBlockVariation( 'core/columns', { name: '70-30', title: 'Dos columnas 70-30', isDefault: false, attributes: { className: 'columnas-70-30' }, innerBlocks: [ [ 'core/column', { width: 70, className: 'ancho-70' }, [ [ 'acf/noticia-portada', { className: 'is-style-cover-white' } ], [ 'acf/noticia-portada' ] ] ], [ 'core/column', { width: 30, className: 'ancho-30' }, [ [ 'acf/noticia-portada' ], [ 'acf/noticia-portada' ] ] ] ], icon: icon7030, scope: [ 'block' ] } );
Forum: Fixing WordPress
In reply to: Styling gutenberg columns block contentThank you bcworkz
The problem with that is that I don’t know the widths of the columns. Maybe in one block the first column is the bigger but in other one is the smaller.
I have extended the columns block in order to create my own layouts giving a class to each column and it works for me.
Thanks a lot
Forum: Fixing WordPress
In reply to: Extending Columns BlockResolved
Forum: Fixing WordPress
In reply to: Extending Columns BlockFound it
wp.blocks.registerBlockVariation( ‘core/columns’, { name: ‘custom’, title: ‘Smiley’, isDefault: true, innerBlocks: [ [ ‘core/column’, { width: 33.33 } ], [ ‘core/column’, { width: 66.66, className: ‘custom’ } ] ], icon: ‘smiley’, scope: [ ‘block’ ] } );
Forum: Fixing WordPress
In reply to: Extending Columns BlockI have found how to do it:
wp.blocks.registerBlockVariation( ‘core/columns’, { name: ‘custom’, title: ‘Smiley’, isDefault: true, innerBlocks: [ [ ‘core/column’, { width: 33.33 } ], [ ‘core/column’, { width: 66.66 } ] ], icon: ‘smiley’, scope: [ ‘block’ ] } );
But I would like to add also a custom class to the variation.Any tips about how to get it?
Thank you in advance
Forum: Fixing WordPress
In reply to: Extending Columns BlockThank you Leslie
I’m a developer. I have seen that the columns block layouts are included in a variations constant, but I have not found yet how to override or extend it with new layouts. If I get it I will post it here.
Best
Forum: Plugins
In reply to: [Yoast SEO] Adding new fields to Article structured dataThank you Pcosta88,
I already checked your docs but they provide examples about changing data, addding images or adding a complete graph piece like Team. I would like to add just a new field (subtitle) to the article graph, but I have found no examples about that.
Best,
Thank you. I think that it’s very important. Is there any javascript hook we may use for unchecking it once the notification is sent?
Thank you in advance
Forum: Plugins
In reply to: [Autoptimize] Javascript errorsThank you