Step 1.
Download the theme roller and save it locally to your site.
Step 2.
Use it instead of the remote themeswitcher, ie update your page to link to the
local copy.
Step 3.
Locate this line in your local theme roller JS file:
var cssLink = $('<link href="'+locStr+'" type="text/css"
rel="Stylesheet" class=.......
Edit the variable:
var cssLink = $('<link href="'+locStr+'" type="text/css" rel="Stylesheet"
class="ui-theme" /><link type="text/css" href="path/to/your/style.override.css"
rel="stylesheet" />');
Notice I appended a 2nd link to the override? This will ensure the override is
processed after themeroller applies the new theme, keeping your changes present.
Save and test.
--- On Tue, 5/19/09, Charlie <[email protected]> wrote:
From: Charlie <[email protected]>
Subject: [jquery-ui] ThemeSwitcher CSS Over rides
To: [email protected]
Date: Tuesday, May 19, 2009, 4:41 PM
Working on app with theme roller, did a few minor UI css over rides
in separate file ( minor padding etc to suit my needs). Once i put it
together I tried themeswitcher.
Themeswitcher introduces ajax loaded UI css file however it seems to
take "last in" control and the over rides I did are now second inline
to the default of the UI css. Before turning on themeswitcher these
over rides were in correct order.
I even tried placing a few of the over rides in style tag right before
<body>. Is there a method to tell themeswitcher css to not be the
last css in the loading order or is the only solution to take the over
rides out of css and script them into jQuery? Have never tried loading
a css file with script, maybe that's what's needed, load the over rides
after themeswitch?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---