Using Mida.so and SiteGround Optimizer (SG Optimizer) together on your WordPress website might lead to compatibility issues that affect the proper functioning of Mida.so. Specifically, the SG Optimizer's caching and optimization functions may interact with Mida.so's script, resulting in unexpected behavior.
To prevent this, you should exclude the Mida.so script from SG Optimizer's optimization. By doing so, you ensure the proper functionality of Mida.so while still benefiting from using SG Optimizer.
Follow these steps to exclude the Mida.so script from the SiteGround Optimizer plugin:
Step 1: Log in to your WordPress admin dashboard.
Step 2: Navigate to Appearance > Theme File Editor.
Step 3: In the list of theme files on the right, find and click on Theme Functions (functions.php).
Step 4: Scroll down to the bottom of the code editor section.
Step 5: Add the following code snippet at the end of the file, just before the closing "?>" tag (if present):
add_filter( 'sgo_javascript_combine_excluded_external_paths', 'js_combine_exclude_external_script' );
function js_combine_exclude_external_script( $exclude_list ) {
$exclude_list[] = 'cdn.mida.so';
return $exclude_list;
}
Step 6: Click the "Update File" button to save the changes.
Step 7: Clear the cache of your website to ensure the update takes effect.
After completing these steps, the Mida.so script should be excluded from SG Optimizer's optimization processes, which should resolve any compatibility issues between the two.
Important Notes:
- Always back up your website before making changes to core files like functions.php.
- If you're not comfortable editing theme files directly, consider using a plugin that allows you to add custom PHP code to your site.
- If you experience any issues after making these changes, revert the changes and seek assistance from a WordPress developer or your hosting provider's support team.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article