Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1416457

    idylliq
    Participant

    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!

    #1417176

    Lely
    Moderator

    Hi 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1417812

    idylliq
    Participant

    Unfortunately, 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!

    #1417944

    Jade
    Moderator

    Hi 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.

    #1418117

    idylliq
    Participant
    This reply has been marked as private.
    #1418625

    Paul R
    Moderator

    Hi,

    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.

    https://www.screencast.com/t/d78VGaWrNRv

    #1418936

    idylliq
    Participant

    -_- …. MAN. You know when you dig too deep. Why havn’t i thought of that before. hahaha thanks a lot!

    #1419073

    Rahul
    Moderator

    You’re most welcome. 🙂

    Let us know if we can help with anything else.