1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Custom themes lost on deploy

Custom themes lost on deploy

3 posts, 0 answered
  1. Andrew
    Andrew avatar
    5 posts
    Registered:
    16 Nov 2010
    26 Jan 2011
    Link to this post
    Whenever I deploy the sitefinity site to our development server the master page has a message "The selected theme could not be found: THEME". I then go to Settings-> Advanced->Appearences->Frontend and add the theme that is on my local machine. I have to do this every time I redeploy. Am I missing something? Config file?
  2. Preetham Reddy
    Preetham Reddy avatar
    57 posts
    Registered:
    16 Jul 2012
    26 Jan 2011
    Link to this post
    Without more information, it's difficult to answer this question but I'll try my best. I create and add new Themes everyday in the official release of Sitefinity and I don't have any issues.

    Let's say you have a Theme names 'Spring' in the App_Themes folder. You structure should look like this :

    App_Themes/Spring/Global/*.css
    App_Themes/Spring/Images/*.jpeg,png etc
    App_Themes/Spring/JS/*.js

    Then you go to Settings - > Advanced -> Appearences -> Frontend themes->  Create new ->

    In the Name, type Spring
    In the Path, ~/App_Themes/Spring  (assuming your folder is at the root directory)

    Click Save Changes

    That should do it... Let me know if you still can't find it...

  3. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    26 Jan 2011
    Link to this post
    The Themes are stored in the following config file:

    ~/App_Data/Sitefinity/Configuration/AppearanceConfig.config

    Sitefinity projects, by default, are web application projects...which means all files aren't automatically included in the project.  Use the "Show All Files" icon above the Solution Explorer to show files not already included in the project.  You can then right-click to include those files in the project.

    My guess is that your deployment process is only deploying files explicitly included in the Web Project and ignoring files (like the AppearanceConfig.config) not included in the project.

    Gabe Sumner
    Telerik | Sitefinity CMS
3 posts, 0 answered