Button to open a modal window without plugins in WordPress

Botón para disparar ventana modal sin plugins

Today's code will allow us to add a button with a shortcode in any post or page in WordPress that when clicked will open a modal window in which we can add the content we want. It can be used to display a subscription form, a contact form, a one-off notice, an image,

Speculative loading in WordPress 6.8

Carga especulativa en WordPress 6.8

WordPress announced a feature that interests me because it could improve performance, or rather perceived loading speed. In version 6.8, scheduled for release on 15 April this year, speculative loading will be added. They announce that it can achieve near-instant page load times by loading URLs before the user navigates to them. This

Converting content published with the classic editor into Gutenberg blocks

Converting content published with the classic editor into Gutenberg blocks

If your blog is a few years old and at a certain point you switched to the Gutenberg editor, leaving all those old posts published in the classic editor format, you may want to convert them now to Gutenberg blocks in one go. Doing this migration can offer some SEO and performance benefits.

Contact form for WordPress without plugin

Formulario de contacto para WordPress sin plugin

One thing I don't understand is that WordPress does not yet include a simple but complete contact form by default. As I regularly do WordPress optimisation work, both here and on third-party sites, I often replace unnecessarily bloated plugins with options, blocks, and decorations that are never used or not needed with code

Five useful snippets for Polylang

Snippets útiles para Polylang

Although there are different opinions about which is the best plugin to create a multilingual blog, and all of them have evolved a lot since their first versions simplifying and facilitating the task, one of the most used is Polylang. With more than 700,000 active installations to date, it remains one of the