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

Forums / Designing & Styling / CSS is not applied

CSS is not applied

2 posts, 0 answered
  1. Dominic
    Dominic avatar
    10 posts
    Registered:
    05 Oct 2012
    19 Dec 2012
    Link to this post
    Hi,

    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:

    ~/App_Data/Sitefinity/WebsiteTemplates/MyTHEME/App_Master/MyMASTERPAGE.Master
    ~/App_Data/Sitefinity/WebsiteTemplates/MyTHEME/App_Themes/MYTHEME/Global/layout.css
    ~/App_Data/Sitefinity/WebsiteTemplates/MyTHEME/App_Themes/MYTHEME/Global/custom.css
    ~/App_Data/Sitefinity/WebsiteTemplates/MyTHEME/App_Themes/MYTHEME/Images/logo.gif

    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
    Registered:
    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!

    Regards,
    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