How to share css files in theme?

Posted by Community Admin on 05-Aug-2018 13:54

How to share css files in theme?

All Replies

Posted by Community Admin on 09-Jan-2012 00:00

Is it possible to make theme and share common css and images like example: all web sites will use this one theme App_Themes/My Theme/common/style.css
and for arabic web site i can include also this one
App_Themes/My Theme/rtl/style.css

Posted by Community Admin on 12-Jan-2012 00:00

Hello Renatas,

When you create a multilingual template all language versions are automatically synchronized, but you are still able to set different themes to them. So what you need to do is register both your Arabic theme and the theme used by all other languages, and then set them to their corresponding templates/pages.

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

Posted by Community Admin on 30-Jan-2012 00:00

Dear Renates

I usualy go about this the following way.
All CSS that are comon to all themes are placed in a
~/css/common.css
Then I add the css to my .master page (I allways have on .master page made up in visual studio to add stuff like this or scriptmanager.

Then I have
\App_Data\Sitefinity\WebsiteTemplates\myKlient\App_Themes\Normal\Global\div.css
\App_Data\Sitefinity\WebsiteTemplates\myKlient\App_Themes\Wide\Global\div.css
And set the rest where the themes differ.

You might have to use !important on some of your styles in the div.css if you have set them also in ~/css/common.css

Give it a try.

Markus



This thread is closed