Tagged: x
-
AuthorPosts
-
December 14, 2016 at 1:32 am #1292367
FriechModeratorHi There,
You mentioned above that this (
<div class="weglot_here"></div>) was the code weglot Guys give you? Anyways let us know how it goes.Cheers!
December 14, 2016 at 11:55 pm #1293845
michaelgraynzParticipantHave tried but no result
Can you check that I have done it correct please?December 15, 2016 at 12:06 am #1293854
Rue NelModeratorHello There,
Thanks for sending us the screenshot. Please ensure that you have placed the file in this location: wp-content/themes/x-child/framework/views/global or else it will not work. Based on the screenshot, you may only have placed it in wp-content/themes/x-child/ which is incorrect. Please double check it.
Please let us know how it goes.
December 15, 2016 at 2:27 am #1293913
michaelgraynzParticipantOK but unfortunately those paths do not exist in my child theme
ie there is no /framework/views/global pathsDecember 15, 2016 at 2:42 am #1293919
michaelgraynzParticipantdo i just put it back in the x theme??
December 15, 2016 at 2:44 am #1293921
Rue NelModeratorHello There,
Basically those paths will not be on the child theme by default. If you want to override the parent theme, then that’s the time that you create the file and upload it to that location. Generally, you should follow these steps:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file<?php // ============================================================================= // VIEWS/GLOBAL/_NAVBAR.PHP // ----------------------------------------------------------------------------- // Outputs the navbar. // ============================================================================= $navbar_position = x_get_navbar_positioning(); $logo_nav_layout = x_get_logo_navigation_layout(); $is_one_page_nav = x_is_one_page_navigation(); ?> <?php if ( ( $navbar_position == 'static-top' || $navbar_position == 'fixed-top' || $is_one_page_nav ) && $logo_nav_layout == 'stacked' ) : ?> <div class="x-logobar"> <div class="x-logobar-inner"> <div class="x-container max width"> <?php x_get_view( 'global', '_brand' ); ?> </div> </div> </div> <div class="weglot"> ADD YOUR WEGLOT CODE HERE </div> <div class="x-navbar-wrap"> <div class="<?php x_navbar_class(); ?>"> <div class="x-navbar-inner"> <div class="x-container max width"> <?php x_get_view( 'global', '_nav', 'primary' ); ?> </div> </div> </div> </div> <?php else : ?> <div class="x-navbar-wrap"> <div class="<?php x_navbar_class(); ?>"> <div class="x-navbar-inner"> <div class="x-container max width"> <?php x_get_view( 'global', '_brand' ); ?> <?php x_get_view( 'global', '_nav', 'primary' ); ?> </div> </div> </div> </div> <?php endif; ?>And please do not forget to add the ADD YOUR WEGLOT CODE HERE with your weglot translator code.
3] Save the file named as
_navbar.php
4] Upload this file to your server in the child theme’s folder
wp-content/themes/x-child/framework/views/globalHope this helps. Kindly let us know.
December 15, 2016 at 3:08 am #1293948
michaelgraynzParticipantnow i get the error in pic
December 15, 2016 at 3:10 am #1293949
michaelgraynzParticipantthis time
December 15, 2016 at 3:23 am #1293971
Paul RModeratorHi,
In that case, kinldy provide us your ftp login details in private reply.
Thanks
December 15, 2016 at 3:33 am #1293977
michaelgraynzParticipantThis reply has been marked as private.December 15, 2016 at 3:56 am #1294000
Paul RModeratorHi,
I was able to fix the error.
Please note that you need to edit the file in /home/c35a3615463178/html/wp-content/themes/x-child/framework/views/global/_navbar.php
and not the file /home/c35a3615463178/html/wp-content/themes/x-child/_navbar.php (I went ahead and deleted this file to avoid confusion)Thanks
December 15, 2016 at 4:08 am #1294003
michaelgraynzParticipantOh thats great.
Really appreciate the work.
Can you explain to me how now I centre those flags?
What code do I add or alter??December 15, 2016 at 5:35 am #1294083
Paul RModeratorHi,
You can add this under Custom > Edit Global CSS in the Customizer.
.weglot { text-align:center; } .weglot ul { margin:20px auto; } .weglot li { list-style-type:none; display:inline-block; vertical-align:top; padding:0 5px; }Hope that helps.
December 15, 2016 at 5:47 pm #1294928
michaelgraynzParticipantThats absolutely stunning
Thank you thank you. Thank you.Do you have any idea how I can remove the weglot flags from the menu bar
December 15, 2016 at 8:44 pm #1295173
Rue NelModeratorHello There,
Thanks for updating us in! To remove the flags in your menu, there has to be a setting somewhere that you can turn it off. Please go to Weglot > Language button position.

Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1289653 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
