Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8477389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:27:17+00:00 2026-06-10T18:27:17+00:00

What I’m doing: I’m using a three jQuery UI widgets plus a separate jQuery

  • 0

What I’m doing:

I’m using a three jQuery UI widgets plus a separate jQuery based navigation menu.

You can see the three UI widgets working together here:

http://www.dominornovus.com/jquery-test-environment/

(link features datepicker, selectmenu and button jQuery UI widgets)

The problem:

When I copy my working code to another website, the call to the jQuery UI button randomly breaks all jQuery on my page (including the separate jQuery based navigation menu):

http://www.dominornovus.com/killyliss-country-house/test/

The only difference between the pages found at the two links I’ve provided is the jQuery based navigation menu.

Please note that even when I delete all code relating to the navigation menu, the call to the button UI widget still breaks jQuery on my page.

My question

Can anyone deduce from the two pages what difference exists and why one page fails on the button UI call but the other page doesn’t?

I can’t find any discernible difference between the two pages and yet they behave differently. One breaks; the other doesn’t.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:27:19+00:00Added an answer on June 10, 2026 at 6:27 pm

    After further research, this turned out to be a WordPress issue so I posted the issue to WordPress Answers instead.

    Simply put, I was enqueueing jQuery twice.

    Here’s my final working code (added to theme’s function.php file):

        //https://wordpress.stackexchange.com/questions/64062/cannot-enqueue-jquery-correctly-using-google-cdn
        //http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Load_a_default_WordPress_script_from_a_non-default_location
    
        function my_scripts_method() {
            wp_deregister_script( 'jquery' );
            wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.12/jquery.min.js');
            wp_enqueue_script( 'jquery' );
            wp_enqueue_style( 'uicss', '(path_ to_script_location)/my-custom-style.css' );    
            wp_enqueue_script( 'uisel', 'http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/ui.selectmenu.js' );
            wp_enqueue_style( 'uicss2', 'http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/ui.selectmenu.css' );
        }    
    
        //add_action('wp_enqueue_scripts', 'my_scripts_method'); // selectmenu would not work targeting wp_enqueue_scripts
        add_action('wp_head', 'my_scripts_method'); //use wp_head instead
    

    The WordPress Answers thread can be read here: https://wordpress.stackexchange.com/questions/64062/cannot-enqueue-jquery-correctly-using-google-cdn

    After some time, I’ve figured out how to successfully apply the selectmenu widget to WordPress.

    WordPress installations come complete with a bundle of jQuery scripts.

    The fnagel selectmenu will not work the default bundle of jquery and jquery-ui scripts and instead has to be referenced externally using Google CDN.

    I had to deregister the default local jQuery library for WordPress, enqueue the Google CDN and then enqueue the selectmenu script and CSS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I am reading a book about Javascript and jQuery and using one of the
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.