Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #898098
    Shaftdiggy
    Participant

    Im trying to add the ssl secure logo to my site. I’ve seen where you’ve stated to paste the information before the /head section on the functions.php page of child theme but I don’t see the /head or /body tags in the functions.php page.

    #898480
    Zeshan
    Member

    Hi there,

    Thanks for writing in!

    To assist you with this, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you.

    Thanks!

    #898611
    Shaftdiggy
    Participant
    #898779
    Shaftdiggy
    Participant

    I’m also trying to add logos to my credit card checkout using this code:
    .woocommerce-checkout .checkout .payment_methods label img {
    display: block !important;
    }

    I can’t get anything to save in the new custom css editor (its been very difficult to use)

    #899477
    Jade
    Moderator

    Hi there,

    Would you mind clarifying what kind of SSL logo and where do you want it placed on your site?

    To add a logo to your checkout page, please add this in your CSS customizer:

    .woocommerce-checkout form .payment_methods li.payment_method_stripe:before {
        content: "url(URL_TO_THE_IMAGE)";
    }

    Hope this helps.

    #904545
    Shaftdiggy
    Participant

    I tried adding the code but it didn’t work.

    it is the Comodo SSL Trust logo it states to past this before the </head> tag on the page you want it:

    <script type=”text/javascript”> //<![CDATA[
    var tlJsHost = ((window.location.protocol == “https:”) ? “https://secure.comodo.com/&#8221; : “http://www.trustlogo.com/&#8221;);
    document.write(unescape(“%3Cscript src='” + tlJsHost + “trustlogo/javascript/trustlogo.js’ type=’text/javascript’%3E%3C/script%3E”));
    //]]>
    </script>

    and this before the </body> tag

    <script language=”JavaScript” type=”text/javascript”>
    TrustLogo(“http://jazzyowlshop.com/wp-content/uploads/2016/04/jazzyowlshop_2016-04-28_18-26-34.png&#8221;, “CL1”, “none”);
    </script>
    Positive SSL

    #905417
    Paul R
    Moderator

    Hi,

    You can add this in your child theme’s functions.php file

    
    function before_head() {
      ?>
        ...ADD FIRST CODE HERE...
      <?php
    }
    
    add_action( 'wp_head', 'before_head', 99999 );
    
    function before_body() {
      ?>
        ...ADD SECOND CODE HERE...
      <?php
    }
    
    add_action( 'wp_footer', 'before_body', 99999 );
    

    Hope that helps.

  • <script> jQuery(function($){ $("#no-reply-898098 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>