Jquery append();功能无法在WordPress网站上运行

时间:2016-07-14 18:50:17

标签: javascript jquery html wordpress

我想在WordPress网页中添加一个html标签。我正在使用.append(); jquery函数,但它不起作用。 这是我的代码:

$(document).ready(function(){
     $( ".list-unstyled" ).append( "<strong>Hello</strong>" );
});

这是我要添加新标签的网站。 http://soapandsea.com

1 个答案:

答案 0 :(得分:1)

请尝试将所有“$”更改为“jQuery”和reference