• Resolved ericandrew

    (@ericandrew)


    building my first site locally and I can’t get my code to functions to work. I build it perfectly, now adapting it for wordpress is killing me. My functions.php is

    <?php
    function my_scripts_method() {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js');
        wp_enqueue_script( 'jquery' );
    
    	wp_register_script( 'prettyportfolio', get_template_directory_uri() . '/js/script.js', array( 'jquery' ), null, true );
    	wp_enqueue_script( 'prettyportfolio' );
    }
    if( is_page_template('staticportfolio.php')){
    add_action('wp_enqueue_scripts', 'my_scripts_method');
    }?>

    Any help is greatly appreciated.

    http://wordpress.org/extend/plugins/use-google-libraries/

Viewing 1 replies (of 1 total)
  • Plugin Author Jason Penney

    (@jczorkmid)

    This seems to be a general WordPress question, unrelated to this plugin. You might want to try asking in the WordPress support forums.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Use Google Libraries] beginner help please’ is closed to new replies.