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