Multiple Site CSS stylesheet

Ger Vang asked on July 21, 2014 17:44

Image Text

How can you add multiple Site CSS stylesheets? I'm not talking about the editor one. If you look at the image, there's three stylesheets, CorporateSite, Dialogs and ECommerce.

Recent Answers


Brenden Kehren answered on July 21, 2014 20:12

Depends on how you want to manage the stylesheets. The ones in your image above the editor, are part of the Corporate Site theme, so those stylesheets physically exist in the file system. IIS will automatically include them in your site. There are good and bad with that approach. I personally use the UI for all my stylesheets and add or remove them dynamically as needed.

If you want the same functionality as in your image without having to use the editor you've circled in red, you can simply create new stylesheets in the CSS Stylesheet application and in your main one you assign to your site, @import the other stylesheets into that main stylesheet.

Another approach is to create new stylesheets in the CSS Stylesheet application then on your master page template in Design view, add a HEAD HTML webpart and include those stylesheets.

0 votesVote for this answer Mark as a Correct answer

Ger Vang answered on July 21, 2014 21:31

For some strange reason, when I add a CSS in the CSS Stylesheet Properties > Theme and click the "Edit" icon, a new window pops up and shows an error message "Access Denied - The dialog parameters are not consistent, please try to reopen the dialog". Any idea? I'm using Kentico version 6.0.4577.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 22, 2014 13:38

You might contact Support for that one.

Just an FYI, adding a stylesheet into the Theme tab, will place a physical .css file in your file system. If you use the General tab, it will store the stylesheet in the database and it won't be served up automatically.

0 votesVote for this answer Mark as a Correct answer

Martin Danko answered on October 2, 2014 14:21

Hello Ger,

Unfortunaly, as I can see... you are still using version 5.x of Kentico which is not supported anymore since Kentico 8 has been released. So I'm not able to help you at this point.

More information could be found in the blog post of our CEO: Announcing End of Support of pre-5.0 Versions

If you are interested to learn more about Kentico when it comes to upgrade of your website to one of the newer versions, please take at the following link: Consulting - Upgrade now!

If you are willing to contact the support directly, you need to upgrade your application at least to version 6 of Kentico. I'm really sorry.

Best regards, Martin

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.