2017-01-26 111 views

回答

1

在子主题中创建一个文件夹并将您的JS文件上传到该文件夹​​。

可以包括使用

wp_enqueue_script() 

或js文件,你可以使用

<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/filename.js" type="text/javascript"></script> 

在主题header.php中添加上面的代码或footer.php

相关问题