Tagged: x
-
AuthorPosts
-
April 18, 2016 at 4:01 am #887823
365SussexParticipanti 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 167line 167 is final line of code following add action(wp_footer….
Thanks in anticipation…
Alan
April 18, 2016 at 5:56 am #888008
ThaiModeratorHi 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 AccountDon’t forget to select Set as a private reply. This ensures your information is only visible to our staff.
Thanks.
April 19, 2016 at 8:01 am #889966
365SussexParticipantOK 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
April 19, 2016 at 11:42 am #890381
ThaiModeratorHi 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.
April 19, 2016 at 12:26 pm #890457
365SussexParticipantAt 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..
April 19, 2016 at 1:17 pm #890561
365SussexParticipantThis reply has been marked as private.April 19, 2016 at 1:21 pm #890573
365SussexParticipantThis reply has been marked as private.April 20, 2016 at 12:43 am #891242
ChristopherModeratorHi 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.
April 20, 2016 at 9:11 am #891840
365SussexParticipantThanks 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.
April 20, 2016 at 9:29 pm #892816
Rue NelModeratorHello 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.
April 21, 2016 at 2:33 am #893177
365SussexParticipantMorning, 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?
April 21, 2016 at 6:20 am #893447
365SussexParticipanthave 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
April 21, 2016 at 9:36 am #893725
JackKeymasterHi 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!
April 21, 2016 at 10:18 am #893812
365SussexParticipantHi 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…
April 22, 2016 at 12:10 am #894778
RupokMemberGlad 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-887823 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
