Jump to content

Invalid html field, javascript is forbidden ERROR


Recommended Posts

I've been trying to insert a JQUERY BANNER using my home page text editor and I get this error " Invalid html field, javascript is forbidden " . I tried googling but didn\t find any solution to this. Please let me know how I can proceed further? It's urgent

Link to comment
Share on other sites

I don't think you can via Javascript in the Home Editor.
If you want to do something special using Javascript with jQuery, you will have to change the theme file of Editorial.

It locates at
/modules/editorial/editorial.tpl


What version of PS are you using?



I downloaded it on FEB 5 2011. I guess it's 1.3
Link to comment
Share on other sites

You can find the version of PrestaShop at the bottom of your back office.

all you have to do is add your physical address to this file.
/modules/editorial/editorial.tpl


It's Version 1.3.6.0. Secondly, I am using a christmas theme. The website on which I am working in www.nagwsuae.com . Secondly, there is not EDITORIAL file under he modules folder. Only blockadvertising, blockpaymentlogo and homefeatured in under the modules folder.
Link to comment
Share on other sites

There will be modules folders, you need to look for in both folders

YourSiteRoot/modules/....
YourSiteRoot/themes/christmas/modules/...

I assume you are using theme "christmas".



I checked both. But There is no editorial.tpl file located under the modules folder.
Link to comment
Share on other sites

the folder is right there. Please attached screen image of my FTP



This is what is written in the editorial.tpl

<!-- Module Editorial -->

{if $xml->body->home_logo_link}body->home_logo_link|escape:'htmlall':'UTF-8'}" title="{$xml->body->$title|escape:'htmlall':'UTF-8'|stripslashes}">{/if}
{if $homepage_logo}{$this_path}homepage_logo.jpgbody->$title|escape:'htmlall':'UTF-8'|stripslashes}" />{/if}
{if $xml->body->home_logo_link}
{/if}
{if $xml->body->$logo_subheading}

{$xml->body->$logo_subheading|stripslashes}

{/if}
{if $xml->body->$title}

{$xml->body->$title|stripslashes}

{/if}
{if $xml->body->$subheading}

{$xml->body->$subheading|stripslashes}

{/if}
{if $xml->body->$paragraph}
{$xml->body->$paragraph|stripslashes}
{/if}

<!-- /Module Editorial -->
Link to comment
Share on other sites

you said you want add jQuery javascript? (I don't know what you want to do)
You just add the javascript there as it you add to the home text editor.
but you better embrace with your javascript with literal tag.
some thing like this

<script type="text/javascript">
   {literal}

You code here....

   {literal}
</script>

Link to comment
Share on other sites

you said you want add jQuery javascript? (I don't know what you want to do)
You just add the javascript there as it you add to the home text editor.
but you better embrace with your javascript with literal tag.
some thing like this

<script type="text/javascript">
   {literal}

You code here....

   {literal}
</script>




I am basically going to add a jquery slideshow on my website in the middle.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...