• I get this message from GeoTrust. Can anyone help please?

    The seal script (which I have) needs to be added to the html source code of your secure site. Word press does seem to have some unique issues with adding our seal code

    WordPress will disrupt the code by doing the following:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <!-- GeoTrust QuickSSL [tm] Smart  Icon tag. Do not edit. -->"
    <SCRIPT LANGUAGE="JavaScript"  TYPE="text/javascript" SRC="//smarticon.geotrust.com/si.js"></SCRIPT>"
    <!-- end  GeoTrust Smart Icon tag -->"

    it adds ‘BR’ to the end of each line, Those Html line breaks disrupt the javascript and break the code for the site seal. A functional line in WordPress will look as follows:

    <SCRIPT LANGUAGE="JavaScript"  TYPE="text/javascript" SRC="//smarticon.geotrust.com/si.js"></SCRIPT>

    Have you web developer try to apply the seal in this manner and let us know if this helps to resolve the issue as needed, thank you!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    If you try to add that code via the post editor then yes Very Bad Things™ will happen to it. The post editor isn’t designed for inserting code like that and that should go in your theme’s files.

    If you are uncomfortable with editing your theme’s files (and that’s not a bad thing either) try adding that javascript via a plugin.

    http://wordpress.org/extend/plugins/search.php?q=Header+and+footer

    I’ve used this one in the past for inserting into the header.

    http://wordpress.org/extend/plugins/header-footer/

    If you do use a plugin, please read the instructions carefully.

    Thread Starter rhdm

    (@rhdm)

    Many thanks for the response. I am comfortable with editing the theme’s files. I just don’t know which one to edit!!! There are so many Please let me know. Thanks.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Plugins tend to be safer but if you’re OK with editing theme files…

    Try creating a child theme (so your additions or edits don’t get wiped out) and then try adding that code in your theme’s header.php file.

    I suggest you look for the line that says wp_head() and put the code right before that line.

    http://codex.wordpress.org/Function_Reference/wp_head

    A plugin really would be safer…

    Edit: HA! I’ve looked at http://www.geotrust.com/support/quick-ssl-support/premium-true-site-seal/ and I’m completely wrong. That’s for an icon and NOT in the head. Don’t edit those theme files, I’m way off base here.

    Give me a few minutes. 😉

    Thread Starter rhdm

    (@rhdm)

    Will do. But I did what you said and the seal now appears but above all my web pages. Take a look wwww.copywritingservices.com. Does it look ok to you? Many thanks Jan. You are a star.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    But I did what you said and the seal now appears but above all my web pages.

    Yep. I edited my reply after you read it. Back out any theme changes, my advice was not that good. 😉

    Looking at that GeoTrust web page it looks like you do want to be able to insert that code into your post or page.

    Inserting scripts like that almost never works out. But you can use a plugin to create a shortcode and insert that shortcode into your post. That works really well and here’s the shortcode plugin to do that.

    http://pastebin.com/Dg5mEnX6

    <?php
    /*
    Plugin Name: GeoTrust QuickSSL Icon Shortcode
    Description: Use [mh-geotrust] to insert the QuickSSL Premium True Site Seal into your post or page.
    Author: Jan Dembowski
    Version: 0.1
    */
    
    add_shortcode( 'mh-geotrust', 'mh_geotrust_seal' );
    function mh_geotrust_seal( $atts ) {
    	$mh_text = <<<'EOD'
    	<!-- GeoTrust QuickSSL [tm] Smart  Icon tag. Do not edit. -->
    	<SCRIPT LANGUAGE="JavaScript"  TYPE="text/javascript"
    	SRC="//smarticon.geotrust.com/si.js"></SCRIPT>
    	<!-- end  GeoTrust Smart Icon tag -->
    EOD;
    	return $mh_text;
    }

    Shortcodes are cool. 😉

    Create a file in wp-content/plugins/geotrust-icon.php and copy the contents above into that file. Visit your WordPress dashboard and locate the plugin named GeoTrust QuickSSL Icon Shortcode and activate it.

    Now in your post or page just add [mh-geotrust] in the post where you want that javascript to appear. Save and visit that post URL.

    If you look at the HTML source of that page you should see the code you want inserted there.

    Thread Starter rhdm

    (@rhdm)

    Thanks I will do that. Shortcodes aren’t cool. You are cool. And I’m very grateful for your help and advice

    Thread Starter rhdm

    (@rhdm)

    Right I’ve done everything, activated, etc, up to the point where I add [mh-geotrust] in the page or post. I only want it at the top of my home/landing page, but because I’m a fool I don’t know which file to put it into or where in that file to put it. Rod

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I only want it at the top of my home/landing page

    That’s not a tough thing to do but looking at your URL, it looks like your site is running a commercial theme.

    You could try asking the theme author and ask him.

    http://themeforest.net/user/GoodLayers

    If that home/landing page is a single php file then adding the code directly should not be that difficult provided you know which file to add it to.

    Thanks for explaining this workaround, I think I can make use of this as well.

    Found the home page but the the author of my commercial wordpress theme has not had the courtesy to respond. Question is where do I insert the code [mh-geotrust]. And do I insert it exactly like this [mh-geotrust). Thanks for all your help to date. Rod

    I tried installing this as a plugin and get the following error

    Parse error: syntax error, unexpected T_SL in /home/jingzhe/public_html/hotguidebelize.com/wp-content/plugins/geotrust-icon.php on line 11

    Any suggestions on getting this to work? Thx – Marie

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Adding a GeoTrust Malware seal to a WordPress website’ is closed to new replies.