View Single Post
Old 04-10-2012, 07:40 PM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
Join Date: Oct 2011
Posts: 4,947

Originally Posted by Steve Strickland1 View Post
I put the script inside a JS file and I'm now making a call to the file using:
<script type="text/javascript" language="javascript" src="/wp-includes/redirect.js"></script>
The path you set for the script ("/wp-includes/redirect.js") points to this address:

But there is no script file there - try to open that URL, an empty page is returned. You should place the script in a publicly accessible place so that the store page would be able to get it - in this case the script will work.

However, those pesky <p> and </p> come back...
Don't worry, it's OK now. They are placed outside the script inclusion:
<p><script type="text/javascript" language="javascript" src="/wp-includes/redirect.js"></script></p>
This way they don't break anything.
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials