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…
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…
How to fix copy paste bug in Whatsapp Web in Firefox?
From past few days, some users are unable to copy and paste text in Whatsapp Web in Firefox browser. This seems to be a bug in whatsapp web. You can copy paste images without an issue, but not text from other tabs or notepad etc., however copy paste withing the whatsapp tab works fine. Solution:…
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…
How to download a large file on your server using PHP?
This tutorial is only for those who want to copy a file from one website to another. If there is a large file you want to download on your website/server from another website, there is no need to first download it on your computer and then upload it using FTP. There’s an easier way to…
Bluehost Forcing Caching of Website Assets – Images, JS, CSS and even HTML?
If you’re hosting your website on Bluehost and if you change any file on your website, chances are your visitors are still seeing the old version of the file. I was optimizing a website for speed using GTMetrix. One of the image was a bit large, more than 2x (Retina) size, so I reduce the…
Bluehost blocking Contact Form 7 submissions – 409 Conflict Error
Sometimes Contact Form 7 does not work on websites hosted at Bluehost hosting. After form submission 409 conflict error occurs. It happens if your IP is blacklisted on some spam lists. It won’t happen if you’re logged in to WordPress. Bluehost gives 409 error for files with URL that contain the word “contact”. You’re likely…