Categories
Wordpress

Remove login shake effect WordPress

If you search for a way to get rid of the shake effect of the WordPress login form when the input is erroneous you’ll find this snippet everywhere: That used to work but the action has moved to login_footer (since somewhere aound WP 5). So this’ll work:

Categories
Gutenberg Wordpress

Match editor style to front-end

If you create a theme for WordPress, you will probably want the front-end and the back-end (the editor) look alike in most cases. It’s not that hard if you know how to do it. wp_enqueue_style You could use the enqueue_block_editor_assets hook to add styles, using wp_enqueue_style. This is how the twentytwenty theme does it. It […]

Categories
Gutenberg Wordpress

Setting up a block

Just a note on the way I currently like to set up development of a Gutenberg block. Basically these are the steps mentioned in the WordPress block editor handbook, that uses the @wordpress/package to work with the webpack and Babel libraries, without too much hassle. Alternative: Advanced Custom Fields Pro A month after I wrote […]

Categories
Gutenberg Web development Wordpress

Use Gutenberg Group blocks for full-width containers

With the WordPress Gutenberg editor it is easy to create full-width blocks. We can use them to create rows that span the whole width of a page. Then we can set a background colour or image for that row, while its content aligns with the content of regular (normal width) blocks. This is often used […]