Javascript and CSS broken in wp-admin
-
Hello all,
Asking for your help as I’ve been desperately trying to resolve this problem.
My site seems to be working normally with all JS and CSS loading as expected in the main part of the website.
However, in the /wp-admin (and wp-login) part of the website, the site appears something like this: https://i.ibb.co/yWffSqx/lb-error2.png
As you can see, the CSS seems to not be working.
I tried disabling the plugins one by one to no avail. I also tried deleting the content of functions.php in my theme to no avail aswell.
I checked the network tab while logged-in to my wp-admin.php and found this: https://i.ibb.co/q1zZCnC/lbazar-error.png
Upon further inspection I found that in fact these Javascript file seem to contain HTML code instead of Javascript code. I then went to the directory where these Javascript files are and their content is normal Javascript.
How can I solve this problem of JS files (and CSS) loading with HTML code inside them instead of their actual JS (and CSS) contents, which is only happening in wp-admin and wp-login?
Any help or hint is appreciated!
The page I need help with: [log in to see the link]
- The topic ‘Javascript and CSS broken in wp-admin’ is closed to new replies.