I can see the problem now: thank you. The buttons are not working because of this JavaScript error:
Timestamp: 1/15/2013 4:35:39 PM
Error: ReferenceError: jQuery is not defined
Source File: http://artbyandrew.com/jeanhouston/marketplace/monochrome-to-color-expanding-the-depth-breadth-and-bandwidth-of-your-life
Line: 29
This is the code which starts on line 29 (from the source of the page):
jQuery(function($){
$('.circle').mosaic({
opacity : 0.8 //Opacity for overlay (0-1)
});
$('.fade').mosaic();
$('.bar').mosaic({
animation : 'slide' //fade or slide
});
$('.bar2').mosaic({
animation : 'slide' //fade or slide
});
$('.bar3').mosaic({
animation : 'slide', //fade or slide
anchor_y : 'top' //Vertical anchor position
});
$('.cover').mosaic({
animation : 'slide', //fade or slide
hover_x : '400px' //Horizontal position on hover
});
$('.cover2').mosaic({
animation : 'slide', //fade or slide
anchor_y : 'top', //Vertical anchor position
hover_y : '80px' //Vertical position on hover
});
$('.cover3').mosaic({
animation : 'slide', //fade or slide
hover_x : '400px', //Horizontal position on hover
hover_y : '300px' //Vertical position on hover
});
});
That depends on jQuery but jQuery is not yet loaded in the page. Move that to somewhere after jQuery is enqueued or enqueue it properly with a dependency on jQuery and this error will go away.
There is an additional error as well:
Timestamp: 1/15/2013 4:35:39 PM
Error: ReferenceError: $ is not defined
Source File: http://artbyandrew.com/jeanhouston/marketplace/monochrome-to-color-expanding-the-depth-breadth-and-bandwidth-of-your-life
Line: 74
This is the code creating that error:
$(document).ready(function(){
$(".slidingDiv").hide();
$(".show_hide").show();
$('.show_hide').click(function(){
$(".slidingDiv").slideToggle();
});
});
That has two problems. 1) you cannot use $ as a function in WordPress (you need to rewrite the code as jQuery(document).ready(function($){ for example). And 2), it depends on jQuery as well, and, same as the previous error, jQuery has not been loaded.
Once you fix those errors, we can take another look for JavaScript errors if the buttons continue to not work.
Posted 11 years ago on Tuesday January 15, 2013 |
Permalink