Debug? It doesn’t seem to be the most interesting topic, but please listen to me What if you are absolutely sure you can solve all the problems on the WordPress website? What if you had a simple step-by-step checklist to tell you the cause of the error and the solution? Well, that’s what I explained in this article. Expert tip: you can add or save this URL to a bookmark so that you can return when there is an error on the site in the future. The directory hiding debugging is not so difficult. Is the general error correction theme setting not applicable? Is CSS not applicable? Is there a 404 error? Show errors after updating the theme? See the \
Although some errors are common and others are rare, there are usually several simple steps to identify and solve the problem. In addition, if there are no actual bugs in the theme or plug-in, there is no need to write code. This guide shares the debugging process used by customers to modify the website. If you implement it on one of your sites, you’ll feel like a real word press expert. Compared with common bug fixes, some common problems are easier to identify and have specific solutions. We will discuss these issues first, and then introduce a more general process that can be used for other issues.
Does the theme setting not apply? If you change plug-in or theme settings, but the site does not show any changes, it is almost always cached. Most caching plug-ins are disabled when viewing customizations, so you can view changes, but usually they are not applied to the site after saving updates. If there are plug-ins such as wprocket, WP super cache or W3 total cache, these plug-ins can cache site files to load faster. Because of caching, visitors will receive the cached (old) version of the file instead of the new file that contains the changes just made.
A simple solution is to empty the cache. No matter what cache plug-in you use, you must have a button to empty the cache by clicking somewhere on the dashboard. The WP rocket conveniently keeps the option to clear the cache on the toolbar. Some caching solutions may take a few minutes, so it may take a while. Then visit the site and perform a hard refresh with CMD + Shift + R (Ctrl + Shift + R) to clear the browser’s cache. Is CSS not applicable? If you have added new CSS to your site, but the changes do not apply, empty your site’s cache first. If this doesn’t work, you may need to further \
Check out this overview of the CSS features guide to learn how to create more dominant CSS selectors. To confirm whether CSS is specific enough, a quick test is as follows! Add important labels Selector{
Background: blue! important
}If it doesn’t work, CSS code may have syntax errors. In the browser or code editor, use the separator to check whether the number of left and right parentheses is the same. Then check for missing semicolons and missing periods before the last class selection. If there is a syntax error, all CSS before the syntax error will work, and future CSS will not work.
Is there a 404 error? Some themes and plug-ins will add custom post types or make other changes that may affect htaccess files. When one of the plug-ins is disabled or the theme is switched, the category pair
matter. Although our theme can’t always say 100% bug free, it’s more likely that the website’s errors come from plug-ins. WordPress sites use one theme, but use an average of 6-10 plug-ins. Access the plug-in page on the dashboard and launch. If active and inactive plug-ins are mixed together, record the plug-ins you are using or take screenshots of the plug-in page. Then click the check box at the top of the table, select all plug-ins, and disable all plug-ins at once using the batch drop-down menu. If you’re a little hesitant about doing this, I understand. What will happen to your website? Disabling the plug-in will temporarily affect the site, but if you re enable it, everything will return to normal. When the plug-in is disabled, the settings are not deleted. That is, after reactivating the plug-in, the plug-in will return to the same settings as before. If the plug-in is disabled, you can check whether the error is still occurring. If the error disappears, you may find that the problem is with one of the plug-ins. Reactivate the plug-in one at a time until an error is returned. If you don’t need a plug-in, you can delete it. Otherwise, you can contact the plug-in developer to understand the error. If your plug-in is not a common error, but conflicts with one of our topics, please contact us. If this does not help, please continue to the next step. If the theme reinstallation plug-in disable does not work, the theme may have an error. The error may be caused by the editing of the theme file, the error update of the damaged file or the error of the theme. If you edit the theme file, reinstalling the theme ignores the edits, so you must save these changes. To reinstall a theme, first access the shapes menu and then switch to a different theme. Then, when you select the theme you want to use, the delete option appears at the bottom. The activity theme cannot be deleted. You must switch the theme first. After removing the theme, you can reinstall the new copy and verify that the error has been corrected. If this does not help, the topic may be wrong. The last thing to try is to reinstall word press itself. WordPress can be used as a last resort for word press reinstallation. Believe it or not, reinstalling WordPress is not as difficult as you think. Access the dashboard and click the update submenu item under the dashboard. On this page, you can view all available updates for word press core, themes and plug-ins. If it is not the latest version of word press, the update button will also be displayed. Otherwise, only the \