Title: Interactive US map with jquery
Last modified: August 21, 2016

---

# Interactive US map with jquery

 *  [sponauglebl](https://wordpress.org/support/users/sponauglebl/)
 * (@sponauglebl)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/interactive-us-map-with-jquery/)
 * Hi!
 * I’m trying to add a US clickable map on _one_ page only. I know I need to use
   something like “is_page( about me )” to identify which page but I: 1. do not 
   know where to put such a statement within the functions.php 2. believe I have“
   called” jquery by putting this string in my functions.php
 *     ```
       function my_init() {
       	if (!is_admin()) {
       		// comment out the next two lines to load the local copy of jQuery
       		wp_deregister_script('jquery');
       		wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2');
       		wp_enqueue_script('jquery');
       	}
       }
       add_action('init', 'my_init');
       ```
   
 * _[Moderator Note: Please post code & markup between backticks or use the code
   button. Your posted code may now have been permanently damaged by the forum’s
   parser.]_
 * but I do not know if that’s correct. 3. I have a zip file I downloaded containing
   all the JS for the map but now I don’t know what file to upload it into via FTP.
 * Any help with the above questions, or how to embed a clickable map would be greatly
   appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/interactive-us-map-with-jquery/#post-4305495)
 * Never, **ever**, de-register core jQuery!
 *  Thread Starter [sponauglebl](https://wordpress.org/support/users/sponauglebl/)
 * (@sponauglebl)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/interactive-us-map-with-jquery/#post-4305498)
 * I’m obviously in over my head. I don’t even know what that means! How about this:
   what is the easiest way to add an interactive map to my website on one page? 
   I’ve searched the internet but I’m still not totally understanding.
 * Thank you for your help.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/interactive-us-map-with-jquery/#post-4305503)
 * Get rid of that complete function and then review [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Interactive US map with jquery’ is closed to new replies.

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/interactive-us-map-with-jquery/#post-4305503)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
