Support » Plugin: Use Google Libraries » [Plugin: Use Google Libraries] beginner help please

  • Resolved 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

    function my_scripts_method() {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', '');
        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.

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


    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.