Jump to content

Place HTML Code between <head> tag


Recommended Posts

Please I need to place a given chat html code between <head> </head>. Please where I can place this code.

 

I want to use the external chat software.

 

Thanks to all.

Share this post


Link to post
Share on other sites

try paste it in your /themes/yourtheme/header.tpl before </head>.

 

hope it helps

 

 

I tried this but it did not work. I want to insert a code got from zopim to my page but this is getting harder than expected.

 

Please help me

Share this post


Link to post
Share on other sites

apparently it was stated in the site that you need to paste it on the part before </body> tag instead of the head tag as normally done in prestashop. Try in footer.tpl and include {literal}

 

 

{literal} the script............{/literal}

</body>

 

 

 

 

hope it helps.

Edited by halennoor (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites
  • 6 years later...
On 7/24/2012 at 5:46 PM, halennoor said:

apparently it was stated in the site that you need to paste it on the part before </body> tag instead of the head tag as normally done in prestashop. Try in footer.tpl and include {literal}

 

 

{literal} the script............{/literal}

</body>

 

 

 

 

hope it helps.

I tried this but it did not work. :(

Share this post


Link to post
Share on other sites
  • 6 months later...
On 8/10/2018 at 11:55 AM, yybeautyonline said:

I tried this but it did not work. :(

If you are using 1.7, go to /themes/your_theme/templates/_partials/head.tpl and add the code at the bottom of the file

It will add the code right before the </head> even if you don't see the closing tag in that tpl file.

  • Thanks 2

Share this post


Link to post
Share on other sites
Il y a 17 heures, mausbaus a dit :

If you are using 1.7, go to /themes/your_theme/templates/_partials/head.tpl and add the code at the bottom of the file

It will add the code right before the </head> even if you don't see the closing tag in that tpl file.

This worked for me ! Thanks

 

Is there any solution to add the code only on one page header ? A page called support for exemple ?

Share this post


Link to post
Share on other sites
4 hours ago, Xtase.fr said:

Is there any solution to add the code only on one page header ? A page called support for exemple ?

Unfortunately I am not a programmer but try: 

{if $page.page_name=="PAGE NAME HERE"}

YOUR CONTENT

{/if}

  • Like 1

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More