Print Page | Close Window

Adding Script to Header

Printed From: openElement Website
Category:

openElement


Forum Name: Scripts for Your Website
Forum Description: Samples of scripts you can insert on your website using the element 'block of code.'
URL: http://forum.openelement.com/en/forum_posts.asp?TID=1667
Printed Date: Aug 08 2020 at 12:38pm
Software Version: Web Wiz Forums 10.11 - http://www.webwizforums.com


Topic: Adding Script to Header
Posted By: gvause2
Subject: Adding Script to Header
Date Posted: May 27 2020 at 6:33am

Hi Forum:

I have an issue:

-          Need to add code in my openElement page. Thank in advance.
 

Consent Management Source

Please copy and paste this code into the header for each page on your website(s). It is important that this code be the first script in your document.

 

 



-------------
gv2



Replies:
Posted By: Hobby001
Date Posted: May 27 2020 at 5:18pm
Assuming that you are adding javascript code, open your project, open the targetted page.

In the editing pane top bar you will find a button Code, click on it and a code editing pannel will open.

Click on the plus sign

Add a name, select javascript then select Startbody, if it doesn't work, try with Header position




-------------
Anyone who wants to put something on line gets hooked by something big


Posted By: gvause2
Date Posted: May 28 2020 at 7:50am

I really appreciate your response and help. 

You verified what I initially did was correct.  My script is for Consent Management purposes.

My challenge has been testing the functionality of this solution.

My script is located on line #22

It suppose to display:

This website stores data such as cookies to enable important site functionality including analytics, targeting, and personalization. By remaining on this web site you indicate your consent. http://cookiesandyou.com/" rel="nofollow -  

What are your thoughts?



-------------
gv2


Posted By: Hobby001
Date Posted: May 29 2020 at 12:52pm
Give a try to this one:  https://www.websitepolicies.com/create/cookie-consent-banner" rel="nofollow - https://www.websitepolicies.com/create/cookie-consent-banner

Then add the resulting code as HTML in the header



-------------
Anyone who wants to put something on line gets hooked by something big


Posted By: gvause2
Date Posted: Jun 04 2020 at 5:56am
Thank you!


-------------
gv2



Print Page | Close Window

Forum Software by Web Wiz Forums® version 10.11 - http://www.webwizforums.com
Copyright ©2001-2012 Web Wiz Ltd. - http://www.webwiz.co.uk