Unable to edit server side rendered block

You’ve gone with a class based component and the normal solution for this problem is that you forgot to use useBlockProps. Your edit component and save components do not use useBlockProps: edit: ( props ) => { return <ServerSideRender block=”wp-portfolio-manager/wppm-block”></ServerSideRender>; }, save: (props) => { return null; } Wrap your server side render component in … Read more

How to add custom HTML tags in the visual mode via keyboard only?

if you are using classic TinyMCE editor then perhaps you can modify it add custom styles. Following code may help you create visual buttons for adding inline styles. // Add Formats Dropdown Menu To MCE if ( ! function_exists( ‘mk_style_select’ ) ) { function mk_style_select( $buttons ) { array_push( $buttons, ‘styleselect’ ); return $buttons; } … Read more

Gutenberg button removed on save if its empty

https://github.com/WordPress/gutenberg/pull/29717 This PR adds a check for button text before rendering the Button block on the front-end. This prevents an empty from displaying on the front-end. What you are trying to do is considered a bug and was fixed in March 2021. The result was empty tags which cause validation and accessibility issues, as well … Read more