Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] External Javascript Problem


  #1  
Old Aug 7, 2012, 08:59 PM
bswb97
 
155 posts · Aug 2010
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?
  #2  
Old Aug 7, 2012, 09:17 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
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.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Aug 8, 2012, 01:00 AM
bswb97
 
155 posts · Aug 2010
Got it to work. Original web dev had added a bunch of unnecessary plugins and that was causing the issue. Nothing to see here.

Bookmarks

Tags
external javascript, javascript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem using Javascript synteknos Atahualpa 3 Wordpress theme 4 Nov 23, 2011 03:07 AM
Javascript Problem bvimusic Atahualpa 3 Wordpress theme 5 Sep 12, 2011 05:25 PM
[SOLVED] problem with JavaScript in pages marek91 Center area post/pages 7 Nov 28, 2010 10:29 PM
problem with external swf in the side bar voodoo Sidebars & Widgets 0 Jan 22, 2010 09:06 AM
External stylsheet msjones Atahualpa 3 Wordpress theme 3 Mar 20, 2009 03:16 PM


All times are GMT -6. The time now is 07:39 PM.


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