Jump to content

Merged Javascript


sh.n.n786

Recommended Posts

Dear all,

 

I have a problem with my prestashop, It seems prestashop merged javascript tags to one tag.

But i need to seprate my script codes with other tags.

 

Like following example

<script type="application/ld+json">
   {
     "@context": "http://schema.org",
     "@type": "WebSite",
     "url": "https://www.example.com/",
     "potentialAction":{
     "@type": "SearchAction",
     "target": "https://query.example.com/search?q={literal}{search_term_string}{/literal}",
     "query-input": "required name=search_term_string"
     }
   }
</script>

But when i use that, Prestashop remove "<script type="application/ld+json">" this line.

 

Please advise me how i can create a script tag without merge to another tags.

 

Prestashop version: 1.6

 

So sorry for my bad English.

 

Regards.

Edited by sh.n.n786 (see edit history)
Link to comment
Share on other sites

  • 5 months later...
  • 11 months later...

<script type="application/ld+json">

{

"@context": "http://schema.org",

"@type": "WebSite",

"url": "http://diposventa.com.ve/",

"potentialAction": {literal}{

"@type": "SearchAction",

"target": "http://diposventa.com.ve/search?q={search_term_string}",

"query-input": "required name=search_term_string",

}{/literal}

}

</script>

Edited by themunda24 (see edit history)
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...