The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. ericandrew
    Posted 3 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

    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.


  2. Jason Penney
    Plugin Author

    Posted 3 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


No tags yet.