• Hello,

    I’m trying to add the following text animation to my frontpage :
    https://unwrongest.com/projects/airport/

    I’ve downloaded from the page above the jquery.airport-1.1.source.js file and transfered it to mytheme/js Folder

    I’ve added the wp_enqueue_script to functions.php file :

    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', 'airport');

    Now, It’s not clear to me if I have to add the code below (taken from from the link above) on my content page in the backend :

    jQuery(function ($) {
    	$(  element  ).airport([ 'moscow', 'berlin', 'stockholm' ]);

    If so, I’m doing something wrong as it is not working.

    Some suggestions would be very helpful.
    Thank you for your time.

  • The topic ‘How to add Jquery to content page ?’ is closed to new replies.