MainWP Blog

Tips & Tricks
Sebastian Moran

Handy WooCommerce Code Snippets

WooCommerce is a very heavily used plugin to turn your WordPress child site into a full eCommerce store. MainWP offers a very easy to use code snippets extension which makes it easy to run code snippets over all of the connect child sites. A couple of common of handy code snippets if you needed to temp disable all products from being purchasable on your child site you can use this code snippet; add_filter( ‘woocommerce_is_purchasable’, ‘__return_false’); You would then need to deactivate that code snippet from the child sites where it was running. Another common code snippet fix would be for

Tips & Tricks
Sebastian Moran

Disable the MainWP Child plugin from Showing the Site Health Info

The site health check feature is a new feature in WordPress 5.2. If you have the MainWP child plugin already hidden from the list of plugins on the child site using the branding extension for MainWP, you may also want to hide the MainWP child plugin from showing on the info tab of the Site Health page. There is now an easy way to hide themes and plugins from showing in the site health info tab, using the Site Health Manager plugin. First, you will need to install and activate the Site Health Manager plugin on all the connected child

Tips & Tricks
Sebastian Moran

Blocking Bad Bots on your Child Site using Booter Plugin

Like something out of a sci-fi movie, bots will inevitably hit your site to index it, trying to add products to cart and create spam accounts if you are using WooCommerce on a child site. One of the easiest ways to block bot crawlers on your child site is to use the Booter plugin to boot those bots. After you have installed and activated the plugin, it will add a new sub-menu in wp-admin on the child site. Settings > Booter – Bots & Crawler Manager Which will take you to the general option settings of the plugin: General Bad

Tips & Tricks
Sebastian Moran

How to Cleanly Remove the Really Simple SSL Plugin

Really Simple SSL is a plugin that is used and installed on a number of sites that have a valid SSL cert to make the site load over HTTPS. But the plugin does not need to be used if the site database already has had a search-replace run from HTTP to HTTPS. If you have used WP-CLI then you can very easily run a search and replace in the sites database before baking a site database backup. wp db export wp search-replace ‘http://sitedomain.com’ ‘https:/sitedomain.com’ –recurse-objects –skip-columns=user_email,guid –all-tables wp option update home ‘https://sitedomain.com’ wp option update siteurl ‘https://sitedomain.com’ wp rewrite flush

Tips & Tricks
Sebastian Moran

The Best MainWP Posts of 2019

Not only are we launching into a new decade, we are leaving an integral one behind. Here are some highlights and the most useful posts put out in 2019. Using the Koko Analytics Plugin on your Sites https://mainwp.com/using-the-koko-analytics-plugin-on-your-sites/ How to Remove all Wordfence Plugin Created Data https://mainwp.com/how-to-remove-all-wordfence-plugin-created-data/ How to Disable Admin Email Verification on Your Child Sites https://mainwp.com/how-to-disable-admin-email-verification-on-your-child-sites/ How to Remove the W3 Total Cache Plugin Cleanly https://mainwp.com/how-to-remove-the-w3-total-cache-plugin-cleanly/ Losing Information by Activating Jetpack https://mainwp.com/losing-information-by-activating-jetpack/ Using WP Optimize Plugin for Site Caching on Your Child Site https://mainwp.com/using-wp-optimize-plugin-for-site-caching-on-your-child-site/ Handy Code Snippets for the Yoast SEO Plugin on your Child Sites https://mainwp.com/handy-code-snippets-for-the-yoast-seo-plugin-on-your-child-sites/ How

Tips & Tricks
Sebastian Moran

How to Host Google Analytics Locally on Your Child Site

If you are looking at ways to improve the site performance of a site that is using Google Analytics for site analytics, then one option is to host Google Analytics locally on your child site. There is a new plugin called Flying Analytics, which makes it very easy to be able to host Google Analytics locally on your child site. After you have installed and activated the plugin it will add a new admin menu too; Settings > Flying Analytics There will be two analytics JS options, which will show the recommended option is to go with the analytics.js file

Tips & Tricks
Sebastian Moran

Using the Website File Changes Monitor Plugin for Tracking File Changes on Your Child Site

Tracking file changes made to your child site can be a messy prospect, depending on which plugin solution is being used. WP White Security, the company behind plugin WP Security Audit Log and Password Policy Manager for WordPress, has created a new plugin called Website File Changes Monitor. First, you will need to install and activate the Website File Changes Monitor plugin on your child site. After the plugin is active on the child site, you will notice a new admin menu created for File Monitor. File Monitor > Settings You can set notification of the file changes, if files

Tips & Tricks
Sebastian Moran

Using SimpleForm Plugin for Clean Site Forms

Simple but performance-based contact forms on your child sites are worth knowing of clean plugin options. On certain sites, you do not always need a number of extra fields in your contact site forms. There is a recent plugin option that works well and it is called SimpleForm. After you have activated and installed the plugin it will add a new admin menu item called Contacts. The plugin adds basic contact fields and you can set the provided fields you would like to make required. Form submission made using the SimpleForm plugin can be accessed from the following admin menu;

Tips & Tricks
Sebastian Moran

Using WP Search Insights Plugin for Tracking Site Searches

If you are using default search on a child site knowing what terms are being searched for on the site is hard to find unless you are using something like Google Analytics. There is a new plugin that will track search terms on a site and it is called WP Search Insights. After you have installed and activated the plugin it will add a new menu item in wp-admin; Tools > WP Search Insights The first part you will be taken to is the dashboard which will show you popular and the recent searches. Also from the dashboard settings of

Tips & Tricks
Sebastian Moran

Using the Suki Theme on Your Child Sites

Knowing which fast and performance-based themes for your child sites is something that can take time to research and test. A more recent theme that is clean lightweight and performance-based but has a number of modules built in even in the free version is the Suki theme. After you have installed and activated the Suki theme on your child site it will add a new admin menu under; Appearance > Suki You will be able to find all of the available modules for Suki. Each of the modules can then be opened in the customizer. There is a pro version

Looking for something?