Hello everybody,

I have made a custom JQuery theme with the help of the "ThemeRoller" at http:http://jqueryui.com/themeroller/.

Then I tried to overwrite the theme path as described here: http://blog.samat.org/2011/08/22/Changing-Drupal-7s-built-in-jQuery-UI-theme, but with no success. My "own" theme is always ignored and only the jquery_update base theme is loaded by jquery.

My third trial was it, to replace the module path, with my theme path to my jquery-theme-folder via hook_css_alter (in the style of the example above).

Here is my code:

function mytheme_css_alter(&$css) {
  if (isset($css['misc/ui/jquery.ui.theme.css'])) {
    $css['sites/default/modules/jquery_update/replace/ui/themes/base/jquery.ui.theme.css']['data'] = drupal_get_path('theme', 'mytheme') . '/mytheme_jquery_design/jquery.ui.theme.css';
  }
}

Also here no success. Does anyone have a solution?

Thanks a lot in advance,

Phil

P. S.:
I would really appreciate an option in the module configuration, where the user can write it's custom jquery theme path.

Comments

marcoka’s picture

#1282700: Allow different jQuery UI themes
this should work. reopen if problem still exists.

p.s you are aware that "mytheme" must be replaced with the themes name?

marcoka’s picture

Status: Active » Closed (cannot reproduce)