Improve page loading performance by delaying image loading until the image enters the viewport. Usage Simply add the loading="lazy" attribute to any…
Description The WordPress Admin Bar is displayed for logged-in users on the frontend by default. This snippet hides the Admin Bar for all users…
This snippet automatically adds rel="noopener noreferrer" to external links in post content that open in a new tab (target="_blank"). It improves security by preventing…
By default, WordPress compresses JPEG images during upload to reduce file size. This snippet disables that compression by setting the image quality to 100%,…
Steps Open functions.php. Add the code below. Save the file. Done — a custom notice will be displayed at the top of the WooCommerce…
This snippet replaces the default WordPress logo on the login screen with the website’s own site logo. It automatically pulls the logo set under…
The Current Year Shortcode allows you to display the current year anywhere on your WordPress website using a simple shortcode. Instead of manually updating…
Use this WP-CLI command to send a test email from your WordPress site and verify that the wp_mail() function is working correctly.
Description WordPress creates a separate attachment page for every uploaded media file. These pages often provide little value and can lead to thin content.…
Replace an old URL with a new one across the database.
Create a new administrator user.
This snippet allows you to define custom font sizes in the Gutenberg block editor. The selected sizes will appear in the Typography settings for…
