Custom jQuery Theme For Templates

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
5/6/2012 6:59:20 PM
Gravatar
Total Posts 148

Custom jQuery Theme For Templates

I am trying to customize my templates with a theme generated by the Theme Roller on the jQuery Website:

My directory structure looks like this:

ClientScript--

                     jquery17

                                     jquery.min.js

                     jqueryui182

                                    themes

                                                 mytheme

                                                             images

                                                             jquery.ui.all.css

                                    jquery.ui.min.js

 

with these changes to user.config:

<addkey="UseGoogleCDN"value="false" />

<addkey="jQueryBasePath"value="~/ClientScript/jquery17/" />

<addkey="jQueryUIBasePath"value="~/ClientScript/jqueryui182/" />

The theme is not taking effect. I opened web.config and added a space.

                 

5/6/2012 7:07:10 PM
Gravatar
Total Posts 148

Re: Custom jQuery Theme For Templates

I also changed the jqueryuithemename="mytheme" in the layour master of my skin.

5/6/2012 8:27:19 PM
Gravatar
Total Posts 2239

Re: Custom jQuery Theme For Templates

You don't need to host the jQuery javascript in order to use a custom jQuery Theme. To use a custom theme, all you need to do is upload the theme to your skin directory (just the images directory and the css file) and then place a reference to the css file in the style.config for the skin.

In your layout.master, remove the jQueryuithemename property from the StyleSheetCombiner control and add IncludeJQueryUI="false".

HTH,
Joe D.

5/7/2012 10:50:58 AM
Gravatar
Total Posts 148

Re: Custom jQuery Theme For Templates

Thank you. It worked.

If I wanted to host the files locally, was there something I was doing wrong?

5/7/2012 2:48:58 PM
Gravatar
Total Posts 18439

Re: Custom jQuery Theme For Templates

You may need to rename the files, you should view the source of the page and see the links for the jquery js and make sure it is correct or rename the files to make it match.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.