Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] External Javascript Problem (http://forum.bytesforall.com/showthread.php?t=18132)

bswb97 Aug 7, 2012 07:59 PM

[SOLVED] External Javascript Problem
 
The following auto-generated iFrame Javascript inserted into a page's HTML content is creating some sort of script error:

PHP Code:

<script type='text/javascript' src='http://www.etsy.com/assets/js/etsy_mini_shop.js'></script><script type='text/javascript'>new Etsy.Mini(5782799,'gallery',3,3,0,'http://www.etsy.com');</script> 

However, it works fine with the default WP 2012 theme. Do I need to do anything special when calling out an external Javascript file?

lmilesw Aug 7, 2012 08:17 PM

I tried that code on a test page and it worked fine as long as I pasted it in HTML mode and didn't switch to visual. The theme should make no difference. A way to get around that is to use plugin that like Post Snippets to "protect" the code.

bswb97 Aug 8, 2012 12:00 AM

Got it to work. Original web dev had added a bunch of unnecessary plugins and that was causing the issue. Nothing to see here. :)


All times are GMT -6. The time now is 03:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.