Tagged: x
-
AuthorPosts
-
December 12, 2016 at 2:19 am #1289653
michaelgraynzParticipantHi I know you do not involve yourselves in 3rd party solutions but I would like to know how I can accomplish some editing.
I have a plugin called Weglot, its a translater.
I want to position the flags it posts beside the header or beneath it. (see attached pic)
Much better if its below it or maybe below and to the right – then it will be ok when viewed on mobile.
This is the code they have given me to do this but I do not which file to put it in to achieve it. <div class=”weglot_here”></div>
I have tried in the child-x theme header.php but that did not work.
I know its a case of my understanding so some assistance would be very helpful.Love the theme by the way.
Regards
Dereck Gray (aka Michael)December 12, 2016 at 2:24 am #1289654
ChristopherModeratorHi there,
Thanks for writing in!
Please copy the file _navbar.php file from framework/views/global and put it in the same path inside child theme. Open the file and put your
<div>just after following block of code :<div class="x-nav-wrap mobile collapse"> <?php x_output_primary_navigation(); ?> </div>Hope it helps.
December 13, 2016 at 12:43 am #1290878
michaelgraynzParticipantThats a help but where do I find the ‘file’
ie where is framework/views/global ?December 13, 2016 at 1:45 am #1290930
FriechModeratorHi There,
Login to your server via FTP and navigate to this directory: \wp-content\themes\x\framework\views\global\ copy the file _navbar.php there and paste it on the child theme’s: \wp-content\themes\x-child\framework\views\global\ directory.
Do your edits on that copied file.
Hope it helps, Cheers!
December 13, 2016 at 2:05 am #1290949
michaelgraynzParticipantOK tried that but did not work.
Can you have a look and see if i got it right please?December 13, 2016 at 2:06 am #1290950
michaelgraynzParticipantthere was no code like you iterated in that file
December 13, 2016 at 2:16 am #1290956
ChristopherModeratorHi there,
I’m sorry, my mistake. I meant _nav-primary.php file. It’s located at the same path.
Hope it helps.
December 13, 2016 at 2:23 am #1290969
michaelgraynzParticipantanother issue – do I raise another ticket or
I noticed that parallax is not working on mobile view
Have I omitted to set something?December 13, 2016 at 2:29 am #1290974
michaelgraynzParticipantnope no change
can you please check me?December 13, 2016 at 2:40 am #1290983
Paul RModeratorHi,
The javascript that responsible to parallax effect is disabled on mobile. And to enable it, you’ll have to edit the core files which we don’t recommend. It’s not a simple process and may overwrite by updates. We already tried that but not successful, it needs to recompile the core files to make it work. And that something we don’t cover as support.
Thanks!
December 13, 2016 at 2:49 am #1290992
michaelgraynzParticipantthanks for that but what of the positioning issue?
December 13, 2016 at 3:19 am #1291013
ChristopherModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. 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 with everything.
December 13, 2016 at 3:40 am #1291035
michaelgraynzParticipantThis reply has been marked as private.December 13, 2016 at 4:11 am #1291064
Paul RModeratorHi,
Create file _navbar.php in wp-content/themes/x-child/framework/views/global
and copy the code below into that 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; ?>Change ADD YOUR WEGLOT CODE HERE with your weglot translator code.
Hope that helps
December 13, 2016 at 11:45 pm #1292300
michaelgraynzParticipantthanks I am attempting to find out from Weglot the code to put there.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1289653 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
