More in this section
Forums / Designing & Styling / include css files in master page from Theme folder

include css files in master page from Theme folder

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.
2 posts, 0 answered
  1. Arjan
    Arjan avatar
    5 posts
    09 Jun 2006
    12 Nov 2014
    Link to this post


    I want to manually add a css link to a master page. I follow the instructions as described here in the documentation for creating the folder structure. The following folders are created:

    • App_Data\Sitefinity\WebsiteTemplates\MyTemplate\App_Master
    • App_Data\Sitefinity\WebsiteTemplates\MyTemplate\App_Themes\MyTheme\Global
    • App_Data\Sitefinity\WebsiteTemplates\MyTemplate\App_Themes\MyTheme\Images
    • App_Data\Sitefinity\WebsiteTemplates\MyTemplate\App_Themes\MyTheme\Css

    I will be creating more than one theme. The documentation also describes that css files in the Css folder will not be included automatically. Now I want to add a css link to a master page from the theme that is selected in Sitefinity. I don't want to set the absolute path to the file.

    Is it possible to set the url of the css file to point to file in the selected Theme?


  2. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    26 Mar 2015
    17 Nov 2014
    Link to this post
    Hi Arjan,

    The Themes folder will be applied once you properly register your theme and apply it to your template via the backend. This will compress all css files into a single combined script and add all styles to your pages accordingly. You need not specify all of your files with absolute paths in the template, only when registering the theme.

    Ivan D. Dimitrov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered