create blocks programmtically on theme activation
I have got my theme set to where on activation pages are created and templates are set, how can I add gutenberg blocks?
I have got my theme set to where on activation pages are created and templates are set, how can I add gutenberg blocks?
I’m having a heck of a time with the ServerSideRender component for a Gutenberg block I’m developing. I’m seeing this error in the (non-)rendered block: Error loading block: The response is not a valid JSON response.
But where can I see the actual JSON response?
I need to fetch on the front page youtube video from the latest post where was used gutenberg youtube block.
I have created a custom block with a dateFrom and dateTo attribute (which work), but would like to hide the block on the front end between these dates.
I have a block template for a custom post type.
I am trying & learning to build custom block for Gutenberg but spent a few hours on searching for full list of “available options”. Maybe I was overlook…
I have been follow a tutorial here: https://rudrastyh.com/gutenberg/remove-default-blocks.html Where it discusses how to remove default Gutenberg blocks like so:
Gutenberg gives you some good choices out of the box but is it possible to add a custom preset? I understand I can change the columns manually but was hoping for a preset to make it easier on the client. My other thought was just manually change the 70/30 one to be more 80/20 in the CSS but again for lack of a better option. Any options as far as adding a preset?
Please have a look at the attached image for reference.
I am using the allowed_block_types_all
filter to choose certain blocks the users can choose from. I have just added one here as an example. This works fine but my issue comes in when trying to choose embeds.