sh.n.n786 Posted September 11, 2015 Share Posted September 11, 2015 (edited) 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 September 11, 2015 by sh.n.n786 (see edit history) Link to comment Share on other sites More sharing options...
sh.n.n786 Posted September 15, 2015 Author Share Posted September 15, 2015 Thank you for your none reply But i found the solution This script must add to a file with name of javascript.tpl this file is in themes folder. Link to comment Share on other sites More sharing options...
dmouradov Posted February 29, 2016 Share Posted February 29, 2016 Thanks !!! Link to comment Share on other sites More sharing options...
themunda24 Posted February 20, 2017 Share Posted February 20, 2017 (edited) <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 February 20, 2017 by themunda24 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now