Tagged: x
-
AuthorPosts
-
March 22, 2017 at 11:25 am #1416457
Ok so the idea is to have (inline) a primary-left-menu, the logo (centered), a primary-right-menu. I searched in the forum, and all of the answers refer to an older theme version (2014) so lines of code aren’t in the same files…
Now i’m getting a bit confused. So if you could help me out, i’m using the icon stack. My idea was to do this (add ‘left-primary’):
All of this is made in the child theme
_navbar.php at the bottom:
<?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', '_nav', 'left-primary' ); ?> <?php x_get_view( 'global', '_brand' ); ?> <?php x_get_view( 'global', '_nav', 'primary' ); ?> </div> </div> </div> </div> <?php endif; ?>
Then, i went in mu functions.php and added this:
register_nav_menus( array( 'left_primary' => __( 'Left Primary Menu', '__x__' ), ) );
I next duplicated _nav-primary.php and renamed it _nav-left-primary.php
And i’m stuck. Because i think i need to call x_output_primary_navigation but for the left-primary…
For the mobile part, i don’t need to worry, as it will be a superfly menu.
Thank you very much if you could help me out!
March 22, 2017 at 10:53 pm #1417176Hi There,
Would you mind providing us with login credentials so we can take a closer look on your setup? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
March 23, 2017 at 10:44 am #1417812Unfortunately, it’s a local install. Let me try to describe in a more simple way what i need, and if we can’t figure it out, i’ll upload a version online.
Basically on the screenshot, you see 2 menus (forget the burger menu). the one on the right is ok, it’s in the template (primary menu). i just want to add a second menu on the left. I just want to, let’s say, add in _navbar.php
?php x_get_view( 'global', '_nav', 'left-primary' ); ?>
on top of
<?php x_get_view( 'global', '_brand' ); ?> <?php x_get_view( 'global', '_nav', 'primary' ); ?>
So that my new menu would be before the logo.
Does that make any sense? If not, please let me know, i’ll try to upload a version online!
Thanks a lot!
March 23, 2017 at 12:13 pm #1417944Hi there,
I would be so much easier if we’ll be able to check the actual code that you have made.
Kindly upload the copy of your site so that we could check it and provide you with the suggestion.
Thank you.
March 23, 2017 at 2:37 pm #1418117This reply has been marked as private.March 24, 2017 at 12:13 am #1418625Hi,
You can actually achieve that by adding your logo as the third menu item in your navbar.
No need to add or modify any theme files.
March 24, 2017 at 8:00 am #1418936-_- …. MAN. You know when you dig too deep. Why havn’t i thought of that before. hahaha thanks a lot!
March 24, 2017 at 9:51 am #1419073You’re most welcome. 🙂
Let us know if we can help with anything else.
-
AuthorPosts