Hi
I was wondering if anyone could advise me the best way (the advised Drupal way) to add some html and javascript a SSL provider has passed me to pull in their Trust Seal to my site.
Ideally I'd like to add it as a Block but assumed if I pasted the entire contents into a block under 'Full HTML' that perhaps it might not be secure (or certainly might not be the Drupal advised way).
The code has been provided in two ways, either (A) altogether or (B) separated between Java Script and HTML.
PS I've just realised Drupal.org strips out some of the code below.... just incase you think it looks weird!
See below for code:
(A) Code - All together:
var __dcid = __dcid || [];__dcid.push(["DigiCertClickID_-i3gxxY7", "13", "l", "black", "-i3gxxY7"]);(function(){var cid=document.createElement("script");cid.async=true;cid.src="//seal.digicert.com/seals/cascade/seal.min.js";var s = document.getElementsByTagName("script");var ls = s[(s.length - 1)];ls.parentNode.insertBefore(cid, ls.nextSibling);}());
(B) Code - Separated out:
Javascript Code (usually goes in the document head):
var __dcid = __dcid || [];__dcid.push(["DigiCertClickID_-i3gxxY7", "13", "l", "black", "-i3gxxY7"]);(function(){var cid=document.createElement("script");cid.async=true;cid.src="//seal.digicert.com/seals/cascade/seal.min.js";var s = document.getElementsByTagName("script");var ls = s[(s.length - 1)];ls.parentNode.insertBefore(cid, ls.nextSibling);}());
HTML Code:
If anyone could advise it would be greatly appreciated.
Thank you
Stephen
Comments
Hi Stephen, Depending on your
Hi Stephen,
Depending on your theme, you could insert that Javascript straight into the header (html.tpl.php or page.tpl.php). You'll find the files in your theme folder - just look for whichever one contains the HEAD information - this varies from theme to theme.
Once you have that code in there, you should be able to just use the HTML in your block.
Drupal website design, optimisation and hosting in Nottingham and the East Midlands
Find the best Drupal Tutorial Websites