作者:mobiledu2502885243 | 来源:互联网 | 2023-08-16 14:21
Ihavebeenunabletomakethistoggle()functionworkonmywordpresssite,althoughitworksinco
I have been unable to make this toggle() function work on my wordpress site, although it works in codepen. Here is the code:
虽然它在codepen中工作,但我无法使这个toggle()函数在我的wordpress网站上运行。这是代码:
I have my scripts sourced properly and the jQuery library sourced in the header.php template file. I use the same code in codepen and it works, but when I put it all into my site it doesn't work.
我正确地获取了我的脚本,并且在header.php模板文件中提供了jQuery库。我在codepen中使用相同的代码并且它可以工作,但是当我把它全部放入我的网站时它不起作用。
1 个解决方案