CSS and JS file are not loading

Website URL

(please specify the URL of the site on which you are experiencing the problem)

Error Message

The CSS and JS files are uploaded in filemanager and the path is set to /assets/…/xyz.css and similiar to js(file path is set in html which is inside the folder template) but the file is not found while rendering the page I tried the full path, I also tried to keep html css in templates folder since I am using wordpress so inside wp-content/themes/mytheme/ … i have assets and templates also I copied my asstes to templates but still the css and js files are not loading I don’t know how to now set the path for css and js now I tried all the way
It works fine with my VScode and other stuff its able to get the path but on server and on wordpress and in my theme that is custom its not able to find the css and js

Since I am new to developing please bear with such silly question, any help will ne appreciated. Also it might be the issue in wordpress but somehow the scripts are present at mutiple locations still its not loading

Other Information

(other information and details relevant to your question)

Hi and welcome to the forum! I don’t know if this will help you since I don’t develop themes for WordPress actively, but I suggest you to try:

7 Likes

Will surely look in to it thanks for sharing and for those who will try to access the website its down beacause of some entry process issue I don’t know why its happening very often even when CSS and JS are not loading so only HTML is there still entry process is getting triggered (and showing try after 24 hrs it will be activated again)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.