-
AuthorPosts
-
July 13, 2016 at 9:13 pm #660563
Hello,
I just installed a Comodo SSL on my site https://digitalproductpro.com/
and wanted install their sticky logo to my site as seen here https://www.positivessl.com/?key5sk1=46eb760a1562d1d30eb5fad165cefafd99da1452They gave me the instructions here https://trustlogo.com/install/index9.html?url=https://digitalproductpro.com/wp-content/uploads/2016/07/comodo_secure_seal_100x85_transp.png&certname=Positive-SSL
but I’m not sure how to paste the code before </BODY> tag
I think I installed the code before </HEAD> tag correctly but could you tell me
were to paste see codes within my editor.Thanks
July 14, 2016 at 12:49 pm #660809Hi marketwithmichael,
Try the following in your functions.php file:
function add_custom_code_header() { ?> <script type="text/javascript"> //<![CDATA[ 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> <?php } add_action('wp_head', 'add_custom_code_header'); function add_custom_code_footer() { ?> <script language="JavaScript" type="text/javascript"> TrustLogo("https://digitalproductpro.com/wp-content/uploads/2016/07/comodo_secure_seal_100x85_transp.png", "CL1", "none"); </script> <a href="https://www.positivessl.com/" id="comodoTL">Positive SSL</a> <?php } add_action('wp_footer', 'add_custom_code_footer');
Thanks,
RikardJuly 14, 2016 at 7:02 pm #660971I’m not sure what happened but the pasted the code you sent and it caused my site to go down showing this error message.
Parse error: syntax error, unexpected ‘?’ in /home4/mmiller/public_html/digitalproductpro.com/wp-content/themes/enfold/functions.php on line 556
July 15, 2016 at 1:06 pm #661239Hi,
Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.
Thanks,
RikardJuly 6, 2018 at 4:39 pm #982125Hi Rikard,
How would I do this on the cart or checkout page?
- This reply was modified 6 years, 5 months ago by Rgrant74.
July 7, 2018 at 11:19 am #982387Hi Rgrant74,
You can try something like this to place it on the cart page:
function add_custom_code_header() { if(is_cart()) { ?> YOUR SCRIPT GOES HERE <?php } } add_action('wp_footer', 'add_custom_code_footer');
Best regards,
RikardJuly 7, 2018 at 2:22 pm #982467Hi Rikard, The code gave me an error in my footer area. I may have placed it in the wrong place, but it’s ok, after posting my original reply I did find a way to do it.
I then tried to add the secure site image after the add to cart button but I have an issue with the picture duplicating. I posted my query here..https://kriesi.at/support/topic/duplicating-content/
Is there anyway you can have a look and reply? My site goes LIVE tomorrow and this is the last issue (I hope)
Thanks so much
July 8, 2018 at 6:54 am #982642Hi Rgrant74,
It looks like Mike helped you out in your other thread. We’re good in this thread then, right?
Best regards,
RikardJuly 8, 2018 at 7:07 am #982645Yes. Tahn you Rikard. You’ve been a great help
July 8, 2018 at 7:37 am #982656 -
AuthorPosts
- The topic ‘Install Code before tag and before tag’ is closed to new replies.