Tagged: x
-
AuthorPosts
-
November 21, 2016 at 1:11 am #1264982
unluckynelsonParticipantHi there,
Newbie here.. please help..
I want a logo aligned to the right and bottom of the Nav-Bar container (logo attached)
I use the Uber menu’s, and some code for my Navbar. There is a blue gradient block with transparency, and a black transparent block as well. The logo must be in front of the blue block, but behind the black transparency block.Please refer to the attached picture of how my menu looks now, and how I want it to look.
I’ve also attached the logo for your reference.Kind regards,
November 21, 2016 at 1:12 am #1264986
unluckynelsonParticipantThis reply has been marked as private.November 21, 2016 at 1:19 am #1264990
ChristopherModeratorHi there,
Please set ‘logo and navigation layout’ to ‘stacked’ under Customize -> Header.
Copy _navbar.php from framework/views/global and put it in the same path inside child theme, replace existing code with following :
<?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-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> <div class="x-logobar"> <div class="x-logobar-inner"> <div class="x-container max width"> <?php x_get_view( 'global', '_brand' ); ?> </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; ?>Hope it helps.
November 21, 2016 at 5:36 am #1265224
unluckynelsonParticipantHey there, I found the navbar.php but cant find the child theme directory.
Please help.November 21, 2016 at 5:48 am #1265246
ChristopherModeratorHi 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.
Thanks.
November 21, 2016 at 6:36 am #1265296
unluckynelsonParticipantI have setup the child theme, but still don’t know where to copy in the code. I’m really a very beginner, so you’ll have to be a bit clearer on your instructions please.
November 21, 2016 at 6:37 am #1265299
unluckynelsonParticipantI don’t know where the child-theme directory is located. Sorry if I come across dull, but I’ve tried all morning. This is getting frustrating to say the least..
November 21, 2016 at 6:58 am #1265321
Paul RModeratorHi,
The child theme directory is in E:\websites\flashingcentre\www\wp-content\themes\x-child
You can copy the file _navbar.php from E:\websites\flashingcentre\www\wp-content\themes\x\framework\views\global\
to E:\websites\flashingcentre\www\wp-content\themes\x-child\framework\views\global\Hope that helps.
November 21, 2016 at 9:23 am #1265521
unluckynelsonParticipantThis reply has been marked as private.November 21, 2016 at 9:26 am #1265533
JoaoModeratorHi There,
Please provide your FTP credentials in a private reply.
Thanks
Joao
November 21, 2016 at 10:03 am #1265572
unluckynelsonParticipantThis reply has been marked as private.November 21, 2016 at 10:04 am #1265573
unluckynelsonParticipantThis reply has been marked as private.November 21, 2016 at 10:28 am #1265612
JadeModeratorHi there,
Please add the _navbar.php file suggested by Christopher in response #1264990 in wp-content/themes/x-child/framework/views/global.
Hope this helps.
November 21, 2016 at 10:45 am #1265647
unluckynelsonParticipantThis reply has been marked as private.November 21, 2016 at 10:48 am #1265649
unluckynelsonParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1264982 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
