dedecms has many templates with complete functions. The default template used by the installed program is default. If you are capable, you can develop a template you like. If you don't want to do it, you can also download some good-looking templates from the Internet and install them. So how should I replace the template installation? Let’s share the tutorial for replacing the dedecms template.
First, upload the templates downloaded in advance to /templets via FTP, together with the default (because the demo address is local, so what you see is the local folder). As shown in the picture:
#Next, log in to the backend of the website (www.yourwebsite.com/dede (backend address, default address, please enter the modified address if you want to modify it) ), enter your account number and password, and log in to the backend of the website. As shown in the picture:
Log in to the website backend, click "System - System Basic Parameters", there is a "Template Default Style" on the right, change the default "default" to Name your template folder and click "OK" to save. As shown in the picture:
Next, click "Generate - Update Home Page" in the left menu. Here you can see that there is still "default" after "Select Home Page Template". At this time, you need to change this to "Template Folder Name" and click "Update Update Home Page HTML". As shown in the picture:
After updating the homepage, the homepage displays the content of the updated template, but the column pages and content pages inside are still the same as before, because there are no Update, here you need to update the columns, content pages, and update the cache. Click "Update" on the left menu bar, and then select "Update homepage HTML, update column HTML, update document HTML, etc." one by one as shown in the picture:
## At this point, we have changed dedecms default template has been completed. If you find that it has not been updated, you can clear the browser cache, or regenerate the homepage and change the homepage to static browsing, as shown in the picture: Note: dedecms’ templates exist in the form of folders. Remember to upload the entire folder when uploading Before changing the template, it is best to back up the website to prevent errors. Remember to keep the encoding of the template consistent with the encoding of the installation program to prevent garbled characters. For example: your website encoding is UTF-8, and your template encoding must also be UTF-8. For more technical articles related to DedeCMS, please visit theDedeCMS Tutorial column to learn!
The above is the detailed content of How to change the default template in dedecms. For more information, please follow other related articles on the PHP Chinese website!