Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • almanZT 9 posts 90 karma points
    Sep 25, 2019 @ 14:01
    almanZT
    0

    Change stylesheet location in Umbraco 8

    Hi, I have previously changed the stylesheet location by overriding it in the web.config file. I am doing the same now for Umbraco 8 but I cant seem to get it working.

    Does anyone know how to do it?

  • AddWeb Solution Pvt. Ltd 109 posts 360 karma points
    Sep 26, 2019 @ 06:23
    AddWeb Solution Pvt. Ltd
    0

    you can simply create the folder like css in your project and link into your masterenter image description here template in umbraco8

  • almanZT 9 posts 90 karma points
    Sep 26, 2019 @ 07:08
    almanZT
    0

    Hi AddWeb, I believe that you have misunderstood my question. So when by default umbraco places all css files under the /css folder. So when i create a new css file in the back office it places them there. However, all my css files are in a different folder (www/style/css) so i want to change that default behaviour so it places them in my (www/style/css) folder instead of just /css folder.

    Previously in umbraco 7 I added

    <add key="umbracoCssDirectory" value="~/wwwroot/style/css" />
    

    to my web.config and it would work. Now am using umbraco 8 and it doesn't work.

  • almanZT 9 posts 90 karma points
    Sep 26, 2019 @ 07:12
    almanZT
    1

    I just found the answer.

    For future references there seems to be mistake in the umbraco documentation.

    use

    <add key="umbracoCssPath" value="~/wwwroot/style/css" />
    

    instead

Please Sign in or register to post replies

Write your reply to:

Draft