Recently faced this issue on one of the website hosted on octodomains.com.au hosting. If mod_security rules are enabled, the Divi Editor does not work for homepage. The rules are enabled by default, simply turning off the rules solved the issue. In the Network tab in Firefox developer tools, there was a 500 server not found…
Category: WordPress
How to easily set post date & time to current date & time in WordPress?
If you need to edit date of a post, you can simply use the inbuilt feature of WordPress, but if you need to do it often for whatever reasons, the provided snippet will be useful for you. Add the following snippet in your theme’s function.php. If it’s an theme that will probably get updated in…
Enable WP Rest API Cache for Contact form 7
First install this plugin: WP REST Cache then add this code in functions.php to enable form schema cache for contact form 7. You should use a child theme unless you’re using a custom build theme. Here’s the snippet: function tgg_add_cf7_endpoint( $allowed_endpoints ) { if ( ! isset( $allowed_endpoints[ ‘contact-form-7/v1’ ] ) || ! in_array( ‘contact-forms’,…
WordPress Plugin: TGG – WP Optimizer
This plugin is a collection of various WP tweaks. Simply change the settings as per your requirements. Download Plugin (Version 1.0) Plugin Options: Disable Emojis: Stops js/css code related to emojis. Remove Blocks CSS: Turn it on if you don’t use blocks editor. Remove Gutenberg Duotone CSS: Removes the inline CSS added by WP recently….
404 Error and redirect loop on WordPress login page – Sites hosted on Bluehost
It seems Bluehost has recently changed their Mod Security rules, probably to stop WordPress sites from getting hacked. But it seems genuine login attempts are also getting blocked. I’m facing this issue on several of my websites hosted at Bluehost. If I go to domain.com/wp-login.php the login page loads, but if I go to domain.com/wp-admin/…
Fixing slow MySQL Queries on WordPress
Recently I find out about the Query Monitor plugin , I highly recommend it to troubleshoot a slow WordPress site. It will tell you exactly why the site is slow. I installed it on one of my website where I was using “Similar Posts” plugin. With more than 180,000 posts, the plugin slowed down the…