Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 4th Jan 2010, 06:58 AM   #1
HyperActive Warrior
War Room Member
 
Join Date: 2007
Location: , , Netherlands.
Posts: 264
Thanks: 34
Thanked 52 Times in 20 Posts
Default
Javascript in Wordpress
Share on: 
fb share twitter share gplus share more share

Hi Guys,

Quick question: I have a javascript file of a Webanalytics product that I want to load on each page of my Wordpress blog (full version on my own domain)
So I went to the appereance and add the javascript to my footer file.
The javascript does work, however, it disable some basic functions in
my wordpress blog.

For example: An outside link which I configured to open in a _blank (new window) is still opening in the same window. This is very frustrating because I don't want my visitors to leave the page.

Is there a way to add javascript to a Wordpress blog without complications?

Thanks for the support!

Dennis

Never overlook the chase for the almighty dollar.
severt is offline  
Unread 4th Jan 2010, 07:33 AM   #2
Software Engineer
War Room Member
 
wayfarer's Avatar
 
Join Date: 2008
Location: Asheville, NC USA
Posts: 693
Thanks: 37
Thanked 112 Times in 100 Posts
Default
Re: Javascript in Wordpress
Share on: 
fb share twitter share gplus share more share

If that script has that side effect, it is the scripts fault. Wordpress is not any different than any other system, ie, the end product is just a collection of HTML, CSS, and scripts. If the analytics script is creating a conflict, use a different analytics. I recommend Google's.

I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs
wayfarer is offline  
Unread 4th Jan 2010, 09:46 AM   #3
Wildly successful author
War Room Member
 
eibhlin's Avatar
 
Join Date: 2008
Location: About 100 yards from Disney World. Really.
Posts: 745
Thanks: 665
Thanked 903 Times in 379 Posts
Default
Re: Javascript in Wordpress
Share on: 
fb share twitter share gplus share more share

I've had luck putting Javascript in a single-cell table in WordPress. I'm not sure why that works, but it seems to.
eibhlin is offline  
Unread 4th Jan 2010, 10:03 AM   #4
HyperActive Warrior
War Room Member
 
Join Date: 2007
Location: , , Netherlands.
Posts: 264
Thanks: 34
Thanked 52 Times in 20 Posts
Default
Re: Javascript in Wordpress
Share on: 
fb share twitter share gplus share more share

I just found out that the error also excist when I use a non-wordpress site.
Sorry for the trouble guys and thanks for the reply's!

Dennis

Never overlook the chase for the almighty dollar.
severt is offline  
Closed Thread


Bookmarks

Tags
javascript, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




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