Форуми / Cotonti / Support / How to change the theme?

mr.smart
#1 11.01.2012 19:28

I Want to change the default theme, but I don't know how

Dayver
#2 11.01.2012 19:36

In datas/config.php set $cfg['defaulttheme']

Pavlo Tkachenko aka Dayver
Twiebie
#3 11.01.2012 19:37

You can change the default theme by uploading a theme to the themes folder on your FTP server.

After that you have to set the new theme in the config.php file.

PHP
1
$cfg['defaulttheme'] = 'nameofthetheme';

Hope that helps!

lukgoh
#4 11.01.2012 23:34

Once the theme has been uploaded and you have followed Twiebie's instructions you can always change the theme you use by selecting a different one from your profile settings (example: www.example.com/index.php?e=users&m=profile). You can also force the default theme for all your users in the admin panel under themes. So what ever you set this to: 

1
$cfg['defaulttheme'] = 'nameofthetheme';

 is what everyone will use


.

mr.smart
#5 12.01.2012 14:24

It shows this error

Wrong URL.

lukgoh
#6 12.01.2012 15:23

What have you done to get this error? 

You upload the whole theme folder to the folder named "themes" in your main directory. If you have customised any of the php files in the template folder you need to make sure they all share the same name (as the theme). As said before in the config file you set $cfg['defaulttheme'] = 'nameofthetheme'; - so you only set this to the name of the the theme you have uploaded, not a URL or any thing other than the name.

What theme are you trying to upload/set or is it a custom one? 

mr.smart
#7 12.01.2012 17:39

This theme

http://www.cotonti.com/themes/503

lukgoh
#8 12.01.2012 17:52

Are you running Siena Or Genoa? I'm not sure if it makes much of a difference without looking as I use Siena but it says for that theme: Compatibility: Genoa

Anyways have you checked to make sure they haven't put the actual theme folder inside another folder and you are uploading the whole thing? Make sure in your directory its www.example.com/themes/themename and not www.example.com/themes/themename/themename or anything like that. It should be /themename/ and then all the tpl files,plugins, js, css and php files in there. Also make sure when you are setting the config file not to put spaces in the name. If your setting it as "Blanco y Negro" you will probably have this problem? 

Anyways if this didn't help try and give me some more information and I will try and help.