Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » changing theme

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 28988 Views
  • michi
    Avatar
    Community Member
    8 Posts

    changing theme Link to this post

    hi,
    i just wanted to change the theme from blackcandy to khakikraze. but theres no help to install this. where have i to put the files? i've installed the tar.gz ...

    michi

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: changing theme Link to this post

    Find the folder /themes.

    Put the folder with the theme name in that folder.

    Put this in the _config.php file:

    SSViewer::set_theme('khakikraze');

    Visit your homepage and flush the cache. ( ?flush=1 )

    It's here:
    http://doc.silverstripe.com/doku.php?id=themes

  • Jack Harry Bill
    Avatar
    Community Member
    2 Posts

    Re: changing theme Link to this post

    OK I have a similar problem, I cannot get anything other than Black Candy theme to work. I have added 2 themes gecko and pluralism to try out. Edited _config.php - putting this:

    SSViewer::set_theme('gecko');

    in every possible place in the file.

    I have done ?flush=1 on the home page and in cms/admin just in case and nothing, zilch, nada it refuses to change. Anyone with any ideas would be much appreciated as I am at a loss what to try next.

    Oh yes I have shut down the browser, tried a different one, anda different computer all with the same result.

  • Jack Harry Bill
    Avatar
    Community Member
    2 Posts

    Re: changing theme Link to this post

    Thanks a million wojtek - you were right I was editing the wrong config file. I hadn't found that one but I was sure there would be a simple explanation.

    Thanks again

  • rallion
    Avatar
    Community Member
    1 Post

    Re: changing theme Link to this post

    I can't find a _config.php file in the mysite folder?

    I've re downloaded v2.2.1 to check against the copy I have on my machine and neither have a _config.php.

    Am i supposed to create a_config.php file and insert the code to point to the correct theme?

    Feel i'm missing something so simply here, but can't figure out what. So any help would be appreciated.

    thanks

  • DHN
    Avatar
    Community Member
    23 Posts

    Re: changing theme Link to this post

    Rallion... If you choose the tutorial template when installing, your _config.php file is in the tutorial folder and not in the mysite folder.

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: changing theme Link to this post

    Hey thanks guys. It's really cool to see threads like this where people who have come into the open source community over the past 12 months are helping each other out!

  • velvetmonster
    Avatar
    Community Member
    1 Post

    Re: changing theme Link to this post

    I tried to change the theme on the tutorial _config file and got 404ed. I tried reinstalling to get back to the original _config file, but it preserved the old, non-functional one. What is the current config file? Can you paste the script?

    28988 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.