你真的很接近,我认为这些修复应该为你指明正确的方向。我研究并解决了一些语法问题和条件挂钩。希望这能让你朝着正确的方向前进。
// Load \'Working\' jQuery
add_action( \'init\', \'jquery_register\' );
// register from google and for footer
function jquery_register() {
if ( is_admin() )
return;
wp_deregister_script( \'jquery\' );
wp_register_script( \'jquery\', \'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\', false, null, true );
wp_enqueue_script( \'jquery\' );
}
// Try this Equal height:
function my_equal_height() {
wp_enqueue_script( \'equal_height\', get_template_directory_uri().\'/scripts/equalheight.js\', \'jquery\', null, true );
}
add_action( \'wp_head\', \'my_equal_height\' );
让我知道此解决方案对您的作用:)