More in this section
Forums / General Discussions / Themes and skins

Themes and skins

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
4 posts, 0 answered
  1. Eric
    Eric avatar
    147 posts
    Registered:
    12 Nov 2007
    18 Jun 2014
    Link to this post

    How can I get control skins to work with Sitefinity themes?

    I've set up a Frontend theme in Sitefinity's settings and applied that theme to my page template. Stylesheets are getting included automatically, so that's working. But my control skins aren't getting included.

    When I was using the default theme, skins were getting included from /App_Themes/Default/.

    But now I can't get the skins to apply. My frontend theme's path is ~/App_Data/Sitefinity/WebsiteTemplates/Twbs. I've tried putting App_Themes/Twbs folders and skin files everywhere, but they never get applied.

    So where do I put the skin files for my custom frontend theme?

    Thanks

  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    18 Jun 2014 in reply to Eric
    Link to this post

    Like .Skin files?...yeah they don't work...never have :/

  3. Eric
    Eric avatar
    147 posts
    Registered:
    12 Nov 2007
    19 Jun 2014 in reply to Steve
    Link to this post

    Yes, .skin files is what I was trying to apply. The skins for the default theme works, but I guess that's it. Why doesn't that surprise me?

    Fortunately I wanted a single theme for all pages on the site, though I could see this changing in the future, so I was able to set the theme via the web.config.

    Tried doing it via the masterpage codebehind, but apparently that's not possible.

     I think there's a setting in Sitefinity pages where you specify what codebehind should be used, so I could create a dummy class that inhertits Page and sets the theme via the Page_PreInit event, but I don't want to have to set that on every page.

    Hopefully this will get fixed some day.

    Thanks Steve

  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    19 Jun 2014 in reply to Eric
    Link to this post

    I wouldn't hold my breath :/ 

    When you create a page, down at the bottom you can specify the codebehind for the page, and in the backend settings you can set the DEFAULT for that field to be your codebehind...

4 posts, 0 answered