Troubleshooting Common Simple Custom CSS and JS Plugin Conflicts
Content
If you use the Simple Custom CSS and JS plugin, you might occasionally run into issues where it doesn't seem to work, causes errors, or conflicts with other parts of your site. Based on common support queries, this guide will help you diagnose and resolve the most frequent problems.
1. Editor Issues (White Overlay, Missing Fields, Small Window)
A very common problem is a white overlay covering the code editor, making it impossible to write or edit code. This is almost always caused by a conflict with another plugin or your theme that also uses the CodeMirror editor library.
How to troubleshoot:
- Deactivate other plugins: Temporarily deactivate all other plugins. If the editor works again, reactivate your plugins one by one to identify the culprit. Common conflicting plugins include other code editors, file managers, page builders, or optimization tools.
- Switch themes: Temporarily switch to a default WordPress theme like Twenty Twenty-One. If the editor works, the issue is with your theme.
- Check for updates: Ensure all plugins and your theme are updated. The Simple Custom CSS and JS team has resolved many such conflicts in past updates.
2. Custom Code Not Working After a WordPress Update
After a core WordPress update, you might find your JavaScript code has stopped working, often throwing errors like TypeError: $ is not a function in the browser's console.
Why this happens: WordPress has moved towards using JavaScript in a more compatible way, which can break code that relies on the traditional $ shorthand for jQuery.
The solution: You need to wrap your code to properly reference jQuery. Replace any code starting with $(document).ready(function() { with the following structure:
jQuery(document).ready(function($) {
// Your existing code here. You can use the $ inside this function.
$(".your-selector").doSomething();
});
3. 403 Forbidden Error When Saving Code
Clicking the save button and getting a "403 Forbidden" error is a server-level security issue, not a plugin bug.
Why this happens: Your web host's mod_security firewall is likely triggered by the content of your code (often JavaScript or HTML). It blocks the request to save it, interpreting it as a potential threat.
How to resolve it: Contact your hosting provider's support. Explain that you are getting a 403 error when trying to save custom code in your WordPress admin. Ask them if they can check the mod_security rules and either whitelist the request or adjust the rule that is being triggered.
4. Plugin Could Not Be Activated (Fatal Error)
Attempting to activate the plugin results in a fatal error, often mentioning a line in admin-screens.php.
Why this happens: Your server is running a very old and unsupported version of PHP (e.g., 5.2 or 5.3). The plugin requires a newer version of PHP to function.
The fix: You must update the PHP version for your WordPress site. Most hosting providers allow you to do this from your hosting control panel (e.g., cPanel). Contact your host for assistance if needed. Aim for at least PHP 7.4, though PHP 8.x is recommended.
5. General Debugging Steps for Other Issues
For other problems—like codes not appearing, redirects on save, or strange behavior—follow this basic troubleshooting procedure:
- Conflict Test: Deactivate all other plugins except Simple Custom CSS and JS. See if the problem persists.
- If the problem is resolved, reactivate your plugins one by one to identify which one causes the conflict.
- Theme Test: If deactivating plugins doesn't help, temporarily switch to a default WordPress theme (e.g., Twenty Twenty-Four) to rule out a theme conflict.
- Check Error Logs: For fatal errors or 500 internal server errors, enable WordPress debugging or check your hosting provider's error logs. The logs will provide the specific error message needed to find a solution.
By methodically working through these steps, you can usually identify and resolve the conflict causing issues with the Simple Custom CSS and JS plugin.
Related Support Threads Support
-
403 forbidden message on savehttps://wordpress.org/support/topic/403-forbidden-message-on-save/
-
500 error when enabling/disabling plugin on WPML siteshttps://wordpress.org/support/topic/500-error-when-enabling-disabling-plugin-on-wpml-sites/
-
Site destroyed by pluginhttps://wordpress.org/support/topic/site-destroyed-by-plugin/
-
No RTL support causes plugin seemingly not to workhttps://wordpress.org/support/topic/no-rtl-support-causes-plugin-seemingly-not-to-work/
-
Not Found Error 500 on Logged WordPress Homepagehttps://wordpress.org/support/topic/not-found-error-500-on-logged-wordpress-homepage/
-
Not Compatable With Themify Popuphttps://wordpress.org/support/topic/not-compatable-with-themify-popup/
-
wpnonce errorhttps://wordpress.org/support/topic/wpnonce-error/
-
php 7.0 incompatible with snippethttps://wordpress.org/support/topic/php-7-0-incompatible-with-snippet/
-
Malicious Codehttps://wordpress.org/support/topic/malicious-code-25/
-
Installation errorhttps://wordpress.org/support/topic/installation-error-123/
-
White overlayhttps://wordpress.org/support/topic/white-overlay-3/
-
Scripts still run in Elementorhttps://wordpress.org/support/topic/scripts-still-run-in-elementor/
-
Conflict with qTranslate-Xhttps://wordpress.org/support/topic/conflict-with-qtranslate-x-2/
-
Read this BEFORE POSTINGhttps://wordpress.org/support/topic/read-this-before-posting-12/
-
JS codes don’t workhttps://wordpress.org/support/topic/js-codes-dont-work/
-
Conflict with WPML pluginhttps://wordpress.org/support/topic/conflict-with-wpml-plugin-4/
-
Подсветка кода и окно редактораhttps://wordpress.org/support/topic/%d0%bf%d0%be%d0%b4%d1%81%d0%b2%d0%b5%d1%82%d0%ba%d0%b0-%d0%ba%d0%be%d0%b4%d0%b0-%d0%b8-%d0%be%d0%ba%d0%bd%d0%be-%d1%80%d0%b5%d0%b4%d0%b0%d0%ba%d1%82%d0%be%d1%80%d0%b0/
-
Favicon Bughttps://wordpress.org/support/topic/favicon-bug-3/
-
admin-screens.php fatal errorhttps://wordpress.org/support/topic/admin-screens-php-fatal-error/
-
Start having error after 9 postshttps://wordpress.org/support/topic/start-having-error-after-9-posts/
-
Critical WordPress Errorhttps://wordpress.org/support/topic/critical-wordpress-error-7/
-
This plugin is not compatible with Thrive Architect Builderhttps://wordpress.org/support/topic/this-plugin-is-not-compatible-with-thrive-architect-builder/
-
Editor theme not reflectedhttps://wordpress.org/support/topic/editor-theme-not-reflected/
-
Exclude JS Files from Javascript Deferredhttps://wordpress.org/support/topic/exclude-js-files-from-javascript-deferred/
-
Bad code risk scorehttps://wordpress.org/support/topic/bad-code-risk-score-6/
-
Malicious scripts foundhttps://wordpress.org/support/topic/malicious-scripts-found/
-
JS is not working after wp core update 5.3https://wordpress.org/support/topic/js-is-not-working-after-wp-core-update-5-3/
-
Custom CSS and JS with PHP 8.0https://wordpress.org/support/topic/custom-css-and-js-with-php-8-0/
-
CodeMirror js conflict with WordPress Corehttps://wordpress.org/support/topic/codemirror-js-conflict-with-wordpress-core/
-
The white overlay editor issuehttps://wordpress.org/support/topic/the-white-overlay-editor-issue/
-
Errorshttps://wordpress.org/support/topic/errors-276/
-
The 6 custom CSS are missing from the listing, and all my WP posts show up instehttps://wordpress.org/support/topic/the-6-custom-css-are-missing-from-the-listing-and-all-my-wp-posts-show-up-inste/
-
White Overlay with Advanced File Manager Pluginhttps://wordpress.org/support/topic/white-overlay-with-advanced-file-manager-plugin/
-
Spacing problemshttps://wordpress.org/support/topic/spacing-problems-3/
-
Not working after updating to WP 5.0 and installing Classic Editorhttps://wordpress.org/support/topic/not-working-after-updating-to-wp-5-0-and-installing-classic-editor/
-
Plugin could not be activated because it triggered a fatal error.https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-334/
-
There has been a critical error on your website. Please check your site adminhttps://wordpress.org/support/topic/there-has-been-a-critical-error-on-your-website-please-check-your-site-admin/
-
After Activating the Images on Website disappearshttps://wordpress.org/support/topic/after-activating-the-images-on-website-disappears/
-
White Overlayhttps://wordpress.org/support/topic/white-overlay-2/
-
redirect after publishhttps://wordpress.org/support/topic/redirect-after-publish/
-
Conflicthttps://wordpress.org/support/topic/conflict-39/
-
My Scripts Does not work anymorehttps://wordpress.org/support/topic/my-scripts-does-not-work-anymore/
-
Fatal Errorhttps://wordpress.org/support/topic/fatal-error-3645/