How to disable the new WordPress block style CSS in 3 lines

If you don’t use the new WordPress blocks, you should avoid to load the block style CSS on your page to optimize the page load speed. Here the three lines you need:

Adding the action with priority 100, is it executed after the style is enqueued. You can add this code in your functions.php […]

Read More

How to change the WordPress authentication cookie expiration in 3 lines

Never needed to change the standard (2 week) login cookie expiration time of WordPress? Here the 3 line of code you need.

You can add those line in the functions.php file of your theme. DAY_IN_SECONDS is a constant defined by WordPress and represents the number of seconds in a day (86400). In the example […]

Read More

How to change the WordPress mail sender in 3 lines

Shortly: I needed to change the “sender” of all emails from a blog so every delivery error would have been sent to a specific mailbox. Without installing plugins, the three lines of code needed are:

They can be added in the theme functions.php  file for example, even if I wouldn’t add a blog wide […]

Read More

Query error: Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_unicode_520_ci,IMPLICIT)

This error happens when there are tables on your WordPress installation created with different collations. Here we’re going why that happens. WordPress has a built in feature: if you do not explicitly declare the database collation (how a database should compare strings) it makes some thoughts about it and possible decide to use the new […]

Read More

SEO and bbPress

This article contains a set of points we should evaluate to properly optimize bbPress for search engines. It does not contain best practices or magic solutions, it tries only to cover every aspect of contents generated by bbPress and offers a series of questions that should be answered by a SEO. I hope to find […]

Read More