Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Can't install themes


Go to End


9 Posts   2574 Views

Avatar
GhostDE

Community Member, 5 Posts

23 March 2016 at 9:27pm

Edited: 23/03/2016 9:28pm

As I already searched for tutorials for installing themes on silverstripe none of them helped me out and there are still no themes i can install.
I'm a total newbie with installing cms's and installing silverstripe but i managed to get silverstripe working and now I'm trying to get new themes which i like and my company can work with.
The simple theme is working fine but when I install any other theme there just comes the default SS-page and no menus work or anything.

So i searched the web and found a few things and tried these...
-I extracted the themes in the "theme" folder in SS
-edited the config.yml in 3 different ways:
-> SSViewer:
theme: 'themename'
and
->SSViewer::set_theme("themename");
HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles', 'highlight=highlight;no-border=no-border,break=break');
and
-> SSViewer::set_theme("themename");
-i even tried editing the rights for the folders, since i saw that here on the forum as one solution, but it didn't work
- and of course setting the theme on the adminpage in SS (and saving)
Everytime i changed the theme i "/?flush"ed the cache but still nothing happened...

Any new ideas from any of you guys?

greetz,
Ghost

Edit: I'm working with SS 3.3.1

Avatar
darianno

Community Member, 14 Posts

23 March 2016 at 11:38pm

Edited: 23/03/2016 11:40pm

Hi!

Put your complete theme folder inside your SS theme directory:

your_ss_folder/themes/yourtheme_name/

inside folder of yourtheme_name you need to have subfolders: templates, images, javascripts etc.

than you need to put this code to your _config.php (your_ss_folder/mysite/_config.php):

SSViewer::set_theme('yourtheme_name');

save config and run ?flush=all

that should work.

Avatar
GhostDE

Community Member, 5 Posts

24 March 2016 at 12:18am

Edited: 30/03/2016 10:17pm

Hey!

Thanks for the reply... but it's not working :/
Since i already saved some themes in the folder i looked your suggestion up.
For example i have the theme 'kube' downloaded...
I went into /var/www/html/silverstripe/themes where everything should be, looked in 'kube' and found the folders css, fonts, images, javascript, lang, less, templates and in every folder there are files as it should be.
Then i went into the /mysite/_config.php and edited your part like you suggested (this is what it looks like now):
<?php

global $project;
$project = 'mysite';

global $databaseConfig;
$databaseConfig = array(
'type' => 'MySQLDatabase',
'server' => 'localhost',
'username' => 'silverstripe',
'password' => '********',
'database' => 'silverstripedb',
'path' => ''
);

// Set the site locale
i18n::set_locale('de_DE');

SSViewer::set_theme('kube');

And at last I '/flush=all' my firefox and set the theme on the adminpage but there's still only the default page popping up.

Am I forgetting something? Or what am I doing wrong... :/

greetz,
Ghost

Avatar
darianno

Community Member, 14 Posts

24 March 2016 at 12:28am

what theme have you set if you logged into admin area and go to "Settings" -> "Theme" ?

Avatar
GhostDE

Community Member, 5 Posts

24 March 2016 at 12:41am

The same as i wrote into the config files -> 'kube'
I even checked it again a minute ago.

Avatar
darianno

Community Member, 14 Posts

24 March 2016 at 12:49am

Do you have installed any modules? It is possible that some module could overwrite your current theme view.

Did you check version of your theme if supports your SS version ?

Did you check you browser cache ? (Maybe your browser serve you some old files?)

Where did you get theme? If you want, you can paste me the link and I'll try to install on clean installation.

Avatar
GhostDE

Community Member, 5 Posts

24 March 2016 at 2:14am

Edited: 24/03/2016 2:18am

Like I said I'm a newbie so I didn't install any modules I know of^^

I did check the version, especially because I searched on the silverstripe addon-site and marked the '3.3' compatibility and as you may see I got the theme from github
link: http://addons.silverstripe.org/add-ons/i-lateral/silverstripe-themes-kube

I didn't check the cache... but I will try it again
Edit: Cache was cleared but nothing changed

Avatar
darianno

Community Member, 14 Posts

24 March 2016 at 4:31am

Edited: 24/03/2016 4:33am

Theme working on my local environment without any problem.

How I installed theme:

Notice: Theme wasn't successfully installed with Composer, so you need to put your theme into SS manually.

Step 1: Download theme archive (zip) from Git repository (https://github.com/i-lateral/silverstripe-themes-kube)
Step 2: Extract your archive and rename it to "kube"
Step 3: Place this folder to ss_folder/themes/
Step 4: Add following code to your mysite/_config.php file:

SSViewer::set_theme("kube");
HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles', 'highlight=highlight;no-border=no-border,break=break');

Step 5: Go to browser and run ?flush=all

And theme should be working! ;)

Works for me like a charm.

Go to Top