The Big Spring Sale! Up to 50% off!

Site body script on all pages

tu2
11 Posts
tu2 posted this 21 August 2020
Ask a Question

Hi,

Is it possible to add a script (see below) to all pages bodies without the need to add the script on each site?

Hi, Is it possible to add a script (see below) to all pages bodies without the need to add the script on each site?
Vote to pay developers attention to this features or issue.
4 Replies
Order By: Standard | Newest
shane53
124 Posts
shane53 posted this 21 August 2020

You mean add a script to all pages across multiple sites? I don't think so.

Even to add a script across all pages of a single site you would have to use PHP programming. I could be wrong though. If it's javascript, under site settings you can insert script tags in the "Additional Head HTML" that refers to the external javascript file.

Hopefully one day they will allow you to build and save custom blocks (with the script in it for example) you can easily insert into your sites. I think I read this is a feature they have their eye on.

You mean add a script to all pages across multiple sites? I don't think so. Even to add a script across all pages of a single site you would have to use PHP programming. I could be wrong though. If it's javascript, under site settings you can insert script tags in the "Additional Head HTML" that refers to the external javascript file. Hopefully one day they will allow you to build and save custom blocks (with the script in it for example) you can easily insert into your sites. I think I read this is a feature they have their eye on.

Last edited 21 August 2020 by shane53

tu2
11 Posts
tu2 posted this 21 August 2020

I mean to a script across all pages of a single site. I need to add a script to enable a chatbot on our site and it must be in the body of a page (I tried to add it to the footer and header - but that not work).

Thanks for your reply.

I mean to a script across all pages of a single site. I need to add a script to enable a chatbot on our site and it must be in the body of a page (I tried to add it to the footer and header - but that not work). Thanks for your reply.
Support Team
Support Team posted this 24 August 2020

Hi,

I tried to add it to the footer and header ...

This is the proper solution in your case. Header and Footer are displayed on all pages.
The script cannot be executed for various reasons. Please check the browser console for more details.
We can check this issue if you provide us with the script or plugin you're using.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, > I tried to add it to the footer and header ... This is the proper solution in your case. Header and Footer are displayed on all pages. The script cannot be executed for various reasons. Please check the browser console for more details. We can check this issue if you provide us with the script or plugin you're using. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
tu2
11 Posts
tu2 posted this 25 August 2020

Hi Olivia,

I create a private post and share the script there.

Br
Torben

Hi Olivia, I create a private post and share the script there. Br Torben
You must log in or register to leave comments