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

Forums / Designing & Styling / How to share css files in theme?

How to share css files in theme?

3 posts, 0 answered
  1. Renatas
    Renatas avatar
    14 posts
    Registered:
    02 Aug 2011
    09 Jan 2012
    Link to this post
    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

  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    12 Jan 2012
    Link to this post
    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
  3. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    30 Jan 2012
    Link to this post
    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



3 posts, 0 answered