More in this section
Forums / Designing & Styling / CSS is not applied

CSS is not applied

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. Dominic
    Dominic avatar
    10 posts
    05 Oct 2012
    19 Dec 2012
    Link to this post

    I am new to Sitefinity and Themes.   I just created a MasterPage working with a few CSS files and in Sitefinity I created my new FrontEnd Theme and applied it to my template which is based on my MasterPage.

    My directory tree look like this:


    When I look in the Google Chrome Javascript Console, it says "Failed to load resource: the server responded with a status of 404 (Not Found)    .. + the path.

    When I access directly the path of my .CSS file in my browser, I get the error :
    The request filtering module is configured to deny a path in the URL that contains a hiddenSegment section.

    Could this be the problem ?
    How can I solve this?

    Thank you for helping me.
  2. Patrick Dunn
    Patrick Dunn avatar
    237 posts
    03 Nov 2014
    24 Dec 2012
    Link to this post
    Hello Dominic,

     Thanks for using Sitefinity!

    When referencing your theme in Administration > Settings > Advanced >Appearance > Frontened Themes make sure that your Path is ~/App_Data/Sitefinity/WebsiteTemplates/App_Themes/YOURTHEME.

    Do not include the /global/filename.css portion in the theme.

    Take a look at the provided screenshot. My path is ~/App_Data/Sitefinity/WebsiteTemplates/App_Themes/Patrick/Global/main.css

    in the image you will notice I have the path set as ~/App_Data/Sitefinity/WebsiteTemplates/App_Themes/Patrick

    The theme structure in Sitefinity will recognize and apply the required items. 

    I hope this helps!

    Patrick Dunn
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered