Add script to only one page head - Forum | JoomShaper
Awaiting an answer SP Page Builder

Add script to only one page head

Asked by Jordan 4 years ago Last activity 4 years ago

Hi,

I need to add some java script to the head of only one page. When I add the code to the seperate template style assigned for my page, it somehow adds the script code to every other page.

The other pages are not using the same template style.

Please help!

Thank you
Jordan

2 replies

Paul Frankowski Senior Staff

Hi Jordan,

Question seems to be beyond joomshaper support ;o)

  1. Find and install HDAnyCode module
  2. Put your code inside.
  3. Publish that module in one of module positions, that one which is at the top.
    But it will not be in < head > but it doesn't matter, JS should work anyway.

CustomCode Plugins (like PhocaSite) in most cases works on all pages.

Jordan Asked this

Ok thank you, that did the trick.

Jordan

Log in to reply.