Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #887823
    365Sussex
    Participant

    i have followed the instruction given here https://community.theme.co/forums/topic/ssl-code-copy-and-paste/ to a previous query but it is not clear if this resolved the issue as when I do this on my test server page fails to load wityh following error in apache log

    [Mon Apr 18 09:57:14.940899 2016] [:error] [pid 1321] [client 192.168.0.103:63961] PHP Parse error: syntax error, unexpected e
    nd of file in /var/www/html/365sussex.local/public_html/wp-content/themes/x-child/functions.php on line 167

    line 167 is final line of code following add action(wp_footer….

    Thanks in anticipation…

    Alan

    #888008
    Thai
    Moderator

    Hi Alan,

    In this case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link login to your site
    – WordPress Admin username / Password
    – FTP Account

    Don’t forget to select Set as a private reply. This ensures your information is only visible to our staff.

    Thanks.

    #889966
    365Sussex
    Participant

    OK I managed to sort this error out myself thanks for offering to look can you let me know can I get the Comodo logo to line up with theme positioned social icons see image

    #890381
    Thai
    Moderator

    Hi There,

    I couldn’t see any Comodo logo on your website:

    http://i.imgur.com/cWw19a8.png

    Could you please add it again?

    Thank you.

    #890457
    365Sussex
    Participant

    At Moment only on Dev environment I thought the Screen grab with what looks like CR/LF worth of alignment issue before Comodo graphic appears.

    Will get staging sight updated and up again if needed..

    #890561
    365Sussex
    Participant
    This reply has been marked as private.
    #890573
    365Sussex
    Participant
    This reply has been marked as private.
    #891242
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> CSS :

    a#comodoTL {
        float: right;
        position: relative;
        top: -42px;
        right: 39%;
        background-image: url("http://staging.365-sussex.com/wp-content/uploads/2016/04/comodo_secure_seal_76x26_transp.png");
        background-repeat: no-repeat;
        color: transparent;
    }

    Hope it helps.

    #891840
    365Sussex
    Participant

    Thanks for that looked at it but not quite what I needed, I have now managed to fix script so runs correctly and I have logo and link one above the other on left hand page edge. what I want/need to do is leave logo and link in same place ie. left hand edge of display but position the logo up in the footer to be inline with social icons with textual link just below as now.

    #892816
    Rue Nel
    Moderator

    Hello There,

    Please have your code update and use this instead:

    <?php
    
    // =============================================================================
    // FUNCTIONS.PHP
    // —————————————————————————–
    // Overwrite or add your own custom functions to X in this file.
    // =============================================================================
    
    // =============================================================================
    // TABLE OF CONTENTS
    // —————————————————————————–
    // 01. Enqueue Parent Stylesheet
    // 02. Additional Functions
    // =============================================================================
    
    // Enqueue Parent Stylesheet
    // =============================================================================
    
    add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
    
    // Additional Functions
    // =============================================================================
    
    function my_custom_head_output() { ?>
      <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', 'my_custom_head_output', 99999 );
    
    function my_custom_footer_output() {
    ?>
      <div class="custom-footer-content">
        <div class="x-container max width">
          <script language="JavaScript" type="text/javascript">
            TrustLogo("http://staging.365-sussex.com/wp-content/uploads/2016/04/comodo_secure_seal_76x26_transp.png", "SC5", "none");
          </script>
          SSL Certificate
        </div>
      </div>
    <?php
    }
    add_action( 'wp_footer', 'my_custom_footer_output', 99999 );

    We would loved to know if this has work for you. Thank you.

    #893177
    365Sussex
    Participant

    Morning, I have ammended my function.php to match suggested code all works OK but still displaying below the level of the social icons (see attached) I suspect I need to add some css in to adjust position?

    #893447
    365Sussex
    Participant

    have tried adapting your suggestion with the following

    a#comodoTL {
    float: right;
    position: relative;
    top: -3px;
    right: 45%;
    background-repeat: no-repeat;
    }

    .custom-footer-content {
    float: right;
    position: relative;
    top: -42px;
    right: 90%;
    background-repeat: no-repeat;
    }

    which if you look at staging site seems to produce what I want but is fixed position so does not move on mobile or tablets correctly

    #893725
    Jack
    Keymaster

    Hi there Alan,

    Thanks for writing back.

    Try adding the following code in addition to your modifications which should correctly align it on mobiles and tablets as well.

    @media only screen and (min-device-width : 320px) and (max-device-width : 1024px) {
    	.custom-footer-content {
        background-repeat: no-repeat;
        float: right;
        position: relative;
        right: 80%;
        top: -42px;
    	}
    }
    

    Thanks!

    #893812
    365Sussex
    Participant

    Hi Jack,

    Could not really see what that change was expected to do…

    Have managed to get it fixed though by moding my css such

    .custom-footer-content {
    float: Left;
    position: relative;
    top: -42px;
    background-repeat: no-repeat;
    }

    a#comodoTL {
    float: Left;
    position: relative;
    top: -3px;
    background-repeat: no-repeat;
    }

    So all fixed on the alignment front for now…

    #894778
    Rupok
    Member

    Glad that you sorted it out. Feel free to let us know if you face any other issue. We’ll be happy to assist you.

    Thanks for using X.

    Cheers!

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