Slider Suddenly Stopped Working
-
@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
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.phpfile 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);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.
Admin
Did you, by any chance, forgot to include the semicolon at the end of the code I provided?
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’);
I can say the problem is RESOLVED for me by using the following code.
http://code.google.com/p/graphene/source/browse/branches/1.6/js/
http://graphene.googlecode.com/svn/branches/1.6/includes/theme-scripts.php
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.
- You must be logged in to reply to this topic.
