Tagged: x
-
AuthorPosts
-
November 1, 2016 at 1:46 pm #1239581
Bell_LodgeParticipantHi there
Have followed this ticket https://community.theme.co/forums/topic/how-to-add-wmpl-language-switcher-to-top-bar/#post-24735 and get only the php code in the topbar.
Are you able to help??
Site details etc in Private Message..
Thanks
Rick M
NZNovember 1, 2016 at 2:03 pm #1239622
Bell_LodgeParticipantThis reply has been marked as private.November 1, 2016 at 3:20 pm #1239734
JadeModeratorHi there,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Once this child theme is activated, copy the file _topbar.php from wp-content/themes/x/framework/views/global/ then add it in wp-content/themes/x-child/framework/views/global/ then replace the code in the file with this:
<?php // ============================================================================= // VIEWS/GLOBAL/_TOPBAR.PHP // ----------------------------------------------------------------------------- // Includes topbar output. // ============================================================================= ?> <?php if ( x_get_option( 'x_topbar_display' ) == '1' ) : ?> <div class="x-topbar"> <div class="x-topbar-inner x-container max width"> <p class="x-lang-select"><?php do_action('icl_language_selector'); echo 's';?></p> <?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?> <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p> <?php endif; ?> <?php x_social_global(); ?> </div> </div> <?php endif; ?>Then add this code in the CSS customizer:
p.x-lang-select { float: right; } .x-topbar .x-social-global { float: left; }Hope this helps.
November 3, 2016 at 5:26 pm #1242987
Bell_LodgeParticipantHi there
I have tried the above and am still getting the same result..
Also have disabled WPML adding any menu to NavBar / Footer etc..
Any further assist would be appreciated.
Rick M
NZNovember 3, 2016 at 10:11 pm #1243288
Paul RModeratorHi Rick,
We need your http login to be able to check on this.
http://screencast.com/t/PgHOeG9ml
Thanks
November 4, 2016 at 2:38 pm #1244205
Bell_LodgeParticipantThis reply has been marked as private.November 4, 2016 at 11:18 pm #1244699
RadModeratorThis reply has been marked as private.November 5, 2016 at 4:43 am #1244859
Bell_LodgeParticipantHI Rad,
My Bad I think. It should have been the dev site, I test out there before breaking the main site. Hopefully, I will have it back up shortly, cos even I cannot see it now. π
As soon as I can I will let you know.. Interesting about the weird characters though. Will look into that for sure.
Many Thanks
Rick M
NZ
November 5, 2016 at 5:54 am #1244910
ChristopherModeratorHi there,
Your code is completely different from what we’ve provided, see :
<?phpΰ¨ΰ΄ // =============================================================================ΰ¨βΌβΌβεδ€δεεβΌδδ°δΌδδδ°βΌεΌεδΌεδδεβΈεδ εΰ΄ // -----------------------------------------------------------------------------ΰ¨βΌβΌβδ€ζΈζζ°ηζζηβηζΌηζζηβζΌηηηηηβΈΰ΄ // =============================================================================ΰ¨ΰ΄ ?>ΰ¨ΰ΄ <?php if ( x_get_option( 'x_topbar_display' ) == '1' ) : ?>ΰ¨ΰ΄ <div class="x-topbar">ΰ¨ββββγ°ζζ€ηβζζ°ζηηγ΄βη β΄ηζΌηζζηβ΄ζ€ζΈζΈζηβη β΄ζζΌζΈηζζ€ζΈζηβζ΄ζη βηζ€ζηζ βγΈΰ΄ <p class="x-lang-select"><?php do_action('icl_language_selector'); echo 's';?></p>ΰ¨ββββββγ°γΌηζ ηβζ€ζββ βη εΌζζηεΌζΌηηζ€ζΌζΈβ ββη εΌηζΌηζζηεΌζζΌζΈηζζΈηβββ€ββγ΄βββββ€βγ¨βγΌγΈΰ΄ <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p>ΰ¨ββββββγ°γΌηζ ηβζζΈζζ€ζγ¬βγΌγΈΰ΄ <?php x_social_global(); ?> ΰ¨ββββγ°βΌζζ€ηγΈΰ΄ </div>ΰ¨ΰ΄ <?php endif; ?>Please edit _topbar.php and update replace code with the one we provided in previous replay.
Hope it helps.
November 6, 2016 at 4:37 am #1245730
Bell_LodgeParticipantHi Team..
Thank you for your efforts.
I have no idea how the characters managed to get into the file, however I have updated the code and things seem to be working fine.. Something weird no doubt has been going on at my end, I will track it down eventually. Will remain on the alert until I do.
Thank You again..
Always appreciate the help provided..Rick M
NZNovember 6, 2016 at 7:34 am #1245857
ChristianModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1239581 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
