如何在WordPress末尾载入 jQuery
把下面的这段代码放到主题的functions.php文档中,就可以了。
1 2 3 4 5 |
function ds_print_jquery_in_footer( &$scripts) { if ( ! is_admin() ) $scripts->add_data( 'jquery', 'group', 1 ); } add_action( 'wp_default_scripts', 'ds_print_jquery_in_footer' ); |

浙公网安备 33010602011771号