admin管理员组文章数量:1289497
I am having a weird and frustrating problem regarding adding javascript to the posts in WordPress. Googled but no luck.
I am adding widget from the N2yo Satellite Tracking website to my website. In WordPress, to insert javascript, we simply paste the code in the text editor. I did the same and javascript was working but now the element is not working.
Link to the page
Here is what I have tried to fix:
I checked the page code using Inspect Element and it shows that JS is loading on the page:
The problem here is that JS is being retrieved as <p></p>
instead of the script.
I did the same thing and made the post on another domain using Wordpress too, and it worked.
I deactivated all the plugins except Elementor and Elementor pro to find the conflicting plugin but it still didn't work.
Thanks in Advance.
JS used:
<script>
var norad_n2yo = '43600';
</script>
<script type="text/javascript" src=".js"></script>
本文标签: widgetsNeed help in fixing javascript in Wordpress
版权声明:本文标题:widgets - Need help in fixing javascript in Wordpress 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741414767a2377446.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论