• 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', 'https://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)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Interactive US map with jquery’ is closed to new replies.