Jump to content

Place HTML Code between <head> tag


Recommended Posts

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

Link to comment
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
Link to comment
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. :(

Link to comment
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 3
Link to comment
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 ?

Link to comment
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
Link to comment
Share on other sites

  • 3 years later...
On 3/2/2019 at 11:15 PM, mausbaus said:

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.

 How do you do this? I have no idea where to find that..I want to add tracking code to my header..

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...