#dedecmsHow to add pictures to the template but they are not displayed? The reason is simply that the path is wrong and there is no picture. When I installed the template, the path was correct and the picture was fine, but the picture still could not be displayed. I looked at the code carefully and found that the source file had a "/" at the beginning in the way of writing the path. After removing it, it was fine.
Open the templates folder in the source code, find the folder you added, such as myweb, and find the file index.htm there.
The path of css and js inside, as shown in the figure:
Delete the "/" in front of the path, That’s it!
Recommended: dedecms usage tutorial
The above is the detailed content of How to add pictures to dedecms template without displaying them. For more information, please follow other related articles on the PHP Chinese website!