Archived topic
Floating SSL Site Seal
13 replies · Started by richpags on July 4, 2016
Hey all,
I've added a SSL cert to my site and now wanting to display a site seal.
For the moment I've managed to put the seal at the bottom of the main page and checkout page, but would like it to be floating on the bottom right of all pages as shown in the site bellow.
Just wondering if its possible?
Or if anyone has any suggestions on a nicer location, I'll gladly take suggestions.
My site
https://reelmovieposters.com.au/
Thanks all.
Richie
Hi Richie,
You'll want to add the seal into the wp_footer hook in GP Hooks, and wrap it in a div like this:
<div style="position:fixed;bottom:0;right:0;">
Seal in here
</div>
Cheers for that Tom.
I attempted to put the seal code in, but didn't seem to work.
Probably doing something wrong as I'm no code expert.
Currently have the bellow in wp_footer GP Hooks.
var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "http://www.trustlogo.com/");
document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E"));
//]]>
</script>
<script language="JavaScript" type="text/javascript">
TrustLogo("https://reelmovieposters.com.au/comodo_secure_seal_100x85_transp.png", "CL1", "none");
</script>
Oh, I've put that code in between the area I mentioned.
Thanks
Richie
Ok I managed to get a little closer.
I can successfully display the link below to display as text, but can't get the logo to display.
Positive SSL
Surly its something silly I am missing here.
EDIT: i got the image to show by using the below code.
<div>
<img src="site seal URL" alt="SSL Certificate" border="0" /></img>
</div>
Now to make it display the SSL info when covering the mouse over it....
Thanks
Richie
Hi there,
You should just have to place the scripts in your post above inside the div where I added "Seal in here" in this post: https://generatepress.com/forums/topic/floating-ssl-site-seal/#post-206468
Once that's done it should work.
Cheers Tom,
In the GP hooks area, should I only be putting code in the wp_footer area?
Or is code needed in the others such as Before Header?
Thanks
Richie
Ok I have seemed to have it sorted now.
Seems the SSL info appears at random though when moving the mouse over it.
Strange.
Only put code in the wp_footer area.
Check it out a see how it goes.
reelmovieposters.com.au
Cheers Tom.
Richie
Looks good! :)
Cheers Tom,
I might have a play with the code as it's still random regarding the SSL info popping up when hovering over with the mouse.
Richie
That looks like an issue with the script they've provided.
Thanks Tom,
Any recommendations so the code config is similar to the seal in the bellow site?
Or should I just leave it as is?
Really appreciate your help mate.
Thanks
Richie
You'll have to ask your SSL provider if they have any other options without the popup on hover - they should :)
Tom,
I don't mind the pop up on hover so all good.
Thanks
Richie
