Home> CMS Tutorial> DEDECMS> body text

How to change the default template in dedecms

Release: 2019-07-16 17:29:57
Original
8611 people have browsed it

How to change the default template in dedecms

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:

How to change the default template in dedecms

#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:

How to change the default template in dedecms

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:

How to change the default template in dedecms

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:

How to change the default template in dedecms

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:

How to change the default template in dedecms

## 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:

How to change the default template in dedecms

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 the

DedeCMS Tutorialcolumn 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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!