Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there!

    You can use a variation of this snippet to load a jQuery UI theme from a different location. You can put this in your theme’s functions.php.

    https://gist.github.com/jom/81c700d11e19d32574a197466b47fb6c

    You’ll need to download the theme you would like from jQuery UI (https://code.jquery.com/ui/). In WPJM, the default is smoothness.

    The second parameter to wp_register_style() should point to where you uploaded jquery-ui.css.

    For example, you might replace:
    '//code.jquery.com/ui/' . $jquery_version . '/themes/black-tie/jquery-ui.css' with
    'https://example.com/assets/jquery-ui/jquery-ui.css'.

    Hope that helps!

    Best,

    Jake

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘jquery-ui.css cause serious delay’ is closed to new replies.