Dotclear

Vous n'êtes pas identifié(e).

Annonce

#1 2016-07-01 00:55:03

daltro
Membre
Inscription : 2016-07-01

Is theme customization lost on system update?

I have just started to get acquainted to DotClear, and began doing some edition on Berlin theme's css and html files.

My question is: will I lose my customizations when I next update DotClear to a future new version?

Hors ligne

#2 2016-07-01 11:48:25

Franck
Footer de merde
Lieu : Paris
Inscription : 2004-11-09
Site Web

Re : Is theme customization lost on system update?

Hi,

If you take care to put your CSS personal rules in a separate file, included in user_head.html, you will not have any problem.

Example code of user_head.html:

<!-- # This template is included at the end of _head.html template -->
<link rel="stylesheet" type="text/css" href="{{tpl:BlogThemeURL}}/personal.css" media="screen" />

Dotclear addicted since 2004

Hors ligne

#3 2016-07-01 14:00:34

daltro
Membre
Inscription : 2016-07-01

Re : Is theme customization lost on system update?

Thanks for you answer, Franck.

I would also have to edit some Berlin theme's .html files, so I'd better rename the theme so to be safe, I guess, right?

Hors ligne

#4 2016-07-01 17:16:07

Philippe
Stagiaire
Lieu : Toulon
Inscription : 2004-06-13
Site Web

Re : Is theme customization lost on system update?

If you need to modify html files as well, you should make your new theme a child of Berlin : https://dotclear.org/documentation/2.0/ … nheritance

Hors ligne

#5 2016-07-03 05:00:25

Franck
Footer de merde
Lieu : Paris
Inscription : 2004-11-09
Site Web

Re : Is theme customization lost on system update?

daltro a écrit :

Thanks for you answer, Franck.

I would also have to edit some Berlin theme's .html files, so I'd better rename the theme so to be safe, I guess, right?

The Berlin theme has only one own .html file (user_footer.html), so every other .html files modified will not be overwrited or deleted at next updates.

But you also can do as Philippe said, doing a child theme of Berlin.


Dotclear addicted since 2004

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map