MainWP Blog

Pre Load Images WordPress
Tips & Tricks
Sebastian Moran

How to Preload Images on Your WordPress Site

One of the easiest ways to improve front-end performance is to preload the images which contribute to the largest contentful paint (LCP) of the site. To find the images that should be set to preload, test your site using popular performance testing tools, or use the MainWP Lighthouse extension, and navigate to the waterfall results to find the image URL. Head & Footer WordPress Plugin There are a number of ways to preload images by either using a header and footer plugin and then adding the image URLs that should be preloaded in the header of the site. After the

Constants for UpdraftPlus - WordPress Backup Plugin
Tips & Tricks
Sebastian Moran

Some Useful “Constants” for UpdraftPlus

If you are using the UpdraftPlus plugin for site backups then you can control a number of parts of the plugin using constants. Useful Constants for UpdraftPlus The constants for the UpdraftPlus plugin can be added to the site wp-config.php file. Adding constants to your site wp-config.php is possible using the code snippets extension of MainWP. You can also manually edit the site’s wp-config.php file to add the required constant to it. If you have larger database tables then you can set the backup for the database to always use binary MySQL dump using this constant; define(‘UPDRAFTPLUS_ALWAYS_TRY_MYSQLDUMP’, true); If you

Image Formats for WordPress
Tips & Tricks
Sebastian Moran

What Are the Best Image Formats For Your WordPress Website

Since the beginning, JPEG and PNG are the most commonly used image formats in WordPress but with Version 5.8, WebP images are also supported in the media library. As part of the performance focus for WordPress core, WebP image conversion while uploading images might be coming in the later releases. But… There is a plugin “Performance Lab” by the team behind “WordPress Performance Group” which allows you to enable WebP conversion while uploading JPEG files to your media library. Give it a try to test and measure the difference it brings by converting images to WebP image format. You can

iThemes Security Plugin Data Remove After Uninstallation
Tips & Tricks
Sebastian Moran

How to Remove iThemes Security Plugin Data Leftover on Uninstall

If you use the iThemes Security plugin on your WordPress website and want to uninstall it completely, but, the normal uninstallation sometimes leaves the database tables and cron events that you may need to remove manually. This guide is for you! iThemes Security Plugin for WordPress In order to remove the iThemes Security plugin’s database entries, you can use the WP-Optimize plugin as one of the easiest ways to find database tables of iThemes security. After installing and activating the WP-Optimize plugin, navigate to: WP-Optimize > Database > Tables Search for itsec and remove all the database tables that are

WordPress 6.0 - Arturo
Tips & Tricks
Sebastian Moran

Some Useful Features in WordPress 6.0 “Arturo”

As you all know, WordPress 6.0 “Arturo” has been released with many improvements and new features. This is a perfect time to test it on a staging site before updating your production sites. You can use the MainWP WordPress staging extension to create a staging site for your Child Site(s). After updating your staging site to WordPress 6.0, head over to the Dashboard > Home, and you will see a screen as below: Export & Import Block-based Theme If you are using a block-based theme, you can now export the complete theme with all of the template changes made using

Code Snippets WordPress 6.0
Tips & Tricks
Sebastian Moran

Useful Code Snippets for WordPress 6.0

The WordPress 6.0, scheduled to be released on May 24th, 2022, will include several feature improvements. Disable “Lock Blocks” in WordPress 6.0 When editing content using the block editor, a new UI element allows blocks to be locked to prevent changes from being made on a site, but there is a setting that can be used to disable block locking by user role, specific users, or globally. To disable block locking globally on posts and pages then, you can use the following code snippet; add_filter(     ‘block_editor_settings_all’,     function( $settings, $context ) {                  // Disable for posts/pages.         if ( $context->post &&

Lazy Loading Images WordPress Plugins
Tips & Tricks
Sebastian Moran

Two Useful Plugins to Lazy Load Images on WordPress

Lazy loading images can help improve a site’s front-end load times for visitors. WordPress had native lazy loading for site images added in version 5.0 and was enhanced in version 5.9 at the end of 2021. Besides the support for native lazy loading images, there are several solid WordPress plugins that will allow you to lazy load images on your site. 1. Flying Images Flying Images has been covered before in other articles, but besides allowing images to lazy load, it will automatically serve site images from Statically CDN. The plugin also includes on-the-fly image conversion and WebP image conversion. The

Download Monitor WordPress Plugin
Tips & Tricks
Sebastian Moran

Useful Code Snippets for the Download Monitor Plugin for WordPress

If you use the Download Monitor plugin on your site to manage downloads and uploads, you can control its options using code snippets. Download Monitor WordPress Plugin The Download Monitor WordPress plugin supports multiple versions of the same file, as well as being able to insert downloads into posts, log and track downloads and for being able to sell downloads on your site. To disable the force download, use this code snippet; add_filter( ‘dlm_do_not_force’, ‘__return_true’ ); By default, the Download Monitor plugin for WordPress will redirect empty downloads to the site’s homepage. To disable the empty redirects for download, use

Patchstack - WordPress Security Plugin
Tips & Tricks
Sebastian Moran

Using Patchstack Security on Your WordPress Website

Keeping a track of which plugins and themes have vulnerabilities on sites can be a pain to have to deal with. WordPress plugins and themes are responsible for up to 90% of all WordPress vulnerabilities. Patchstack WordPress Plugin Patchstack (previously WebARX) launched a WordPress plugin and a free plan containing features such as; Component Detection Vulnerability Monitoring Real-time Threat Alerts Actionable Suggestions After you have installed and activated the Patchstack plugin, it will add a new sub-menu item to; Settings > Security In order to use the plugin, you will need to create an account with Patchstack and then copy

Version Management iThemes Security Pro Plugin
Tips & Tricks
Sebastian Moran

How to Use “Version Management” in iThemes Security Pro

If you are already using the iThemes Security Pro plugin for site security on any of your Child Sites then you can use a built-in module to control automatic updates on your Child Site(s). The module is called “Version Management” which will give you control over automatic updates for WordPress core, plugins, and themes. The version management comes in handy if the site has a limited stack of installed plugins and includes mostly the static content without a lot of common breaking changes. Version Management in iThemes Security Pro You can find the module from the following admin menu item;

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys