Slider Suddenly Stopped Working

  • Eleni-P

    #25002

    I also have the same problem. I put the js file in js folder (through bluehost FTP) and updated the theme-scripts.php file as advised, but the problem remains.

    Anonymous

    #25003

    @Syahir,

    You never cease to amaze! I too had this problem. I’ve been busy working on some projects recently, and haven’t really checked my site. I was surprised to see the slider stop working. Your fix worked smoothly. I use HostGator.

    @ Eleni-P,

    Did you clear any cache you are using and refresh your browser? I had to do the same thing after I replaced the files.

    Admin

    Syahir Hakim

    #25004

    @Wailuku,

    Follow through the first part just the same, i.e. add the new js file into the /js/ folder.

    Then, open up the theme’s functions.php file and replace line 1085:

    wp_enqueue_script('graphene-jquery-tools', 'http://cdn.jquerytools.org/1.2.5/all/jquery.tools.min.js', array('jquery'), '', true);

    with this one:

    wp_enqueue_script( 'graphene-jquery-tools', get_template_directory_uri() . '/js/jquery-tools-1.2.5.min.js', array( 'jquery' ), '', true);

    Wailuku

    #25005

    Thank you much, Syahir! I will give it a try soon. By the way, your Graphene is fantastic.

    Aloha

    Wailuku

    #25006

    Thank you, Syahir.

    As per your instructions, I cut then pasted in the replacement code:

    wp_enqueue_script( ‘graphene-jquery-tools’, get_template_directory_uri() . ‘/js/jquery-tools-1.2.5.min.js’, array( ‘jquery’ ), ”, true);

    However, this message then appeared:

    Parse error: syntax error, unexpected ‘}’, expecting T_STRING or T_VARIABLE or ‘$’ in /home/hlta1506/public_html/wp-content/themes/graphene/functions.php on line 1086

    Sorry! Do you have any ideas? Again. I deeply appreciate your time and help.

    Wailuku

    #25007

    I forgot. Here is what appears on lines 1086, 1087, and 1088:

    }

    // Print the script

    add_action(‘init’, ‘graphene_scrollable_js’);

    Admin

    Syahir Hakim

    #25008

    Did you, by any chance, forgot to include the semicolon at the end of the code I provided?

    Wailuku

    #25009

    The semicolon is there.

    Hereʻs a chunk of code copied from that area:

    /* Load jQuery Tools script */

    function graphene_scrollable_js() {

    wp_enqueue_script( ‘graphene-jquery-tools’, get_template_directory_uri() . ‘/js/jquery-tools-1.2.5.min.js’, array( ‘jquery’ ), ”, true);

    }

    // Print the script

    add_action(‘init’, ‘graphene_scrollable_js’);

    bobsled

    #25010

    Wailuku

    #25011

    Bobsled–thank you for the info. Letting my newbie-ness show here–so you replaced the original js link address on line 1085 in functions.php with this: http://code.google.com/p/graphene/source/browse/branches/1.6/js/ in line 1085 in functions.php ?

    In which php file and where abouts did you place the second address: http://graphene.googlecode.com/svn/branches/1.6/includes/theme-scripts.php ?

    Thanks in advance.

Viewing 10 posts - 41 through 50 (of 108 total)

  • You must be logged in to reply to this topic.