-
The Unintended Consequences of decoding=’async’ on Your WordPress site’s LCP
Explore the impact of WordPress’s decoding=”async” image optimization on your site’s LCP score and learn how to fix it.
-
How to use Code Snippets plugin
Add custom code snippets to your WordPress site easily with Code Snippets plugin. No need to modify your theme files. Export/import your snippets too!
-
Can’t find page templates after 5.8 WordPress update
Check how to re-add the theme support for page templates.
-
Problem solved: check for has_block() inside reusable blocks
Do you check block type with has_block() to conditionally load scripts, styles, or any other custom logic for the block editor as I do? I’m not sure if you have already noticed, but has_block() doesn’t count with reusable blocks. In the docs, they don’t mention it explicitly: This test optimizes for performance rather than strict accuracy,…
-
How to kill the website when theme is missing or broken
A short snippet that will detect if the active theme is the theme you expect. If not or it’s broken, the website will die and your data won’t leak.
-
Add reCaptcha to Restaurant Reservations plugin
Snippet for adding reCaptcha to reservation form of Restaurant Reservations plugin.
-
WooCommerce: Number of orders per page in My Account – Orders
A short code snippet for editing the number of orders per page in the Order section on My Account page.
-
ACF: Options page within any other menu
Do you need to add custom options page with ACF under another WP menu? Use this snippet.
-
WooCommerce: How to show in-stock quantity in the order detail
Would you like to check remaining in-stock quantity when working with orders? This snippet could help.
-
WP Multisite – old installation and subdirectory install
The Problem You need to transform your WP site into multisite, and you have already added define (‘WP_ALLOW_MULTISITE’, true); to wp-config.php. But you’ve received the following message: Because your install is not new, the sites in your WordPress network must use sub-domains. The main site in a sub-directory install will need to use a modified…