Javascript displayed on my footer
-
Hello: I’m writting a theme with woocommerce and instagram feed plugins. Also I got a code from facebook to display the customer’s facebook page. I didn’t notice it to happen before including the facebook plugin (not a wordpress plugin, just a few javascript lines right below the <body> tag), but after including and styling it, it happened that my footer’s javascript appears duplicated, once on a <script src=jsfile.js”></script> way and once on a <script>code</script> way. The second one appears printed on my footer and displayed on the page. If i avoid to call the wp_footer() function it doesn’t appear, of course, but it’s not the best way to fix it as i need some files included there. I tried disabling the plugins and commenting the facebook plugin as well, but it still appears.
The code I got to display the facebook page comes from this facebook page
This is my footer:<footer> <?php $args = array('theme_location'=>'foot-m', 'menu-id'=>'footer_menu', 'container_class'=>'menu'); echo wp_nav_menu($args); wp_footer(); ?> <!--div class="fb-page" data="....."....><more tags="here"></div--> </footer> </body> </html>
What do I have to do for the double javascript to get away from there?
Thank you so much in advance.
- The topic ‘Javascript displayed on my footer’ is closed to new replies.