Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] External Javascript Problem


  #1  
Old Aug 7, 2012, 07:59 PM
bswb97
 
158 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, 08:17 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 12:00 AM
bswb97
 
158 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 02:07 AM
Javascript Problem bvimusic Atahualpa 3 Wordpress theme 5 Sep 12, 2011 04:25 PM
[SOLVED] problem with JavaScript in pages marek91 Center area post/pages 7 Nov 28, 2010 09:29 PM
problem with external swf in the side bar voodoo Sidebars & Widgets 0 Jan 22, 2010 08:06 AM
External stylsheet msjones Atahualpa 3 Wordpress theme 3 Mar 20, 2009 02:16 PM


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


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