WordPress.org

Forums

Use Google Libraries
[resolved] beginner help please (2 posts)

  1. ericandrew
    Member
    Posted 2 years ago #

    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/

  2. Jason Penney
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Use Google Libraries
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.