This project is read-only.

visitor css-selector

Topics: Customizing Orchard, General
Aug 7, 2011 at 8:48 PM

It's like this. I two css-files that are based on the same theme, only different colors and background-images. I want my visitors to be able to choose what css-style to use. Simply a drop-down menu on the site white the style-names would be great. Is it possible, and if, how? Excuse me if this is an easy thing and I am just stupid! 

Aug 8, 2011 at 12:01 AM

So I have a found a javascript for the issue. However I need to be able to change

<link href="/Themes/TheThemeMachine/Styles/Site.css" rel="stylesheet" type="text/css" />


<link rel="stylesheet" type="text/css" title="Red"
<link rel="alternate stylesheet" type="text/css" title="Blue"

Of what I can understand this is generated by server side scripts. So how can I edit it?


Aug 8, 2011 at 9:00 PM

I Solved it myself. As TheThemeMachine was missing a Document.cshtml file I copied it from another theme and then I could do the changes in head I wanted to.