Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Website Design (https://www.warriorforum.com/website-design/)
-   -   Javascript in Wordpress (https://www.warriorforum.com/website-design/162430-javascript-wordpress.html)

severt 4th January 2010 06:58 AM

Javascript in Wordpress
 
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

wayfarer 4th January 2010 07:33 AM

Re: Javascript in Wordpress
 
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.

eibhlin 4th January 2010 09:46 AM

Re: Javascript in Wordpress
 
I've had luck putting Javascript in a single-cell table in WordPress. I'm not sure why that works, but it seems to.

severt 4th January 2010 10:03 AM

Re: Javascript in Wordpress
 
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


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