-
AuthorPosts
-
August 28, 2014 at 12:13 am #93725
sander bParticipanthello,
<header>How can i place the logo under the navbar menu in Renew-Stack?</header>
August 28, 2014 at 12:34 am #93746
Paul RModeratorHi Sander,
Here are the steps to achieve what you want.
1. Create a child theme
2. Create the file _navbar.php in wp-content/themes/x-child-renew/framework/views/global/
3. Paste the code below in wp-content/themes/x-child-renew/framework/views/global/_navbar.php
<?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-fluid max width"> <?php x_get_view( 'global', '_nav', 'primary' ); ?>sdfsdfsfsdfsfsdf </div> </div> <!-- end .x-navbar-inner --> </div> <!-- end .x-navbar --> </div> <!-- end .x-navbar-wrap --> <div class="x-logobar"> <div class="x-logobar-inner"> <div class="x-container-fluid max width"> <?php x_get_view( 'global', '_brand' ); ?> </div> </div> <!-- end .x-logobar-inner --> </div> <!-- end .x-logobar --> <?php else : ?> <div class="x-navbar-wrap"> <div class="<?php x_navbar_class(); ?>"> <div class="x-navbar-inner"> <div class="x-container-fluid max width"> <?php x_get_view( 'global', '_brand' ); ?> <?php x_get_view( 'global', '_nav', 'primary' ); ?> </div> </div> <!-- end .x-navbar-inner --> </div> <!-- end .x-navbar --> </div> <!-- end .x-navbar-wrap --> <?php endif; ?>4. Select Layout stacked in header > Logo and Navigation in the customizer
http://screencast.com/t/c98nsRkQ
Thanks
August 28, 2014 at 11:37 am #94116
sander bParticipantexcellent! thanx for the quick reply
August 28, 2014 at 1:58 pm #94210
Kosher KMemberNo Problem.
Cheers
September 16, 2014 at 2:12 pm #105992
sander bParticipantand if i want the menu left or right?
September 16, 2014 at 2:24 pm #105998
DarshanaModeratorHi there,
You can use the following CSS code to align the menu. Place it under the Customizer, Custom > CSS section using the menu Appearance -> Customize .
#menu-main { float: left; }Just make it “float: right;” to align right.
Hope that helps.
September 18, 2014 at 8:53 am #107204
sander bParticipantit did not work.
in the end it worked when, in the renew-css, i used
.navbar{
float: left;
}i could not find #menu-main
September 18, 2014 at 9:23 am #107214
sander bParticipanti can not get the underline from the navigation menu away 😛
http://belou.eu/clients/minibeachflag/wordpress/
underline in the menuSeptember 18, 2014 at 10:40 am #107266
DarshanaModeratorHi there,
You can add the following css code inside the Customizer, Custom > CSS section via Appearance -> Customize to hide those underlines.
.x-navbar .x-nav > li > a:hover, .x-navbar .x-nav > li.current-menu-item > a { box-shadow: 0 2px 0 0 #000000; }January 28, 2016 at 3:37 pm #769410
Amanda PParticipantHey guys!
I would like my logo to be under my navigation bar as well. I have tried this suggestion … creating the php file with said code and my settings are set to ‘stacked’, but the logo still remains stuck above the navigation.
I am using the Icon stack.
Looking forward to your reply.
January 28, 2016 at 3:39 pm #769423
Amanda PParticipantOops, I figured out the problem, I’ll post here in case someone makes the same mistake …. I accidentally named the new file global_navbar.php instead of just _navbar.php
Fixed and it works!!! Thank you.
January 28, 2016 at 9:21 pm #769825
Prasant RaiModeratorGreat I am glad you figured it out.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-93725 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
