Ready to get started?Download WordPress


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

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

About this Topic


No tags yet.