Multiple menus

hi there X

i havent used X for about 2 years now, however im going to use it in my next project but i want to know if i can achieve this:

i read on the old forum some similar questions but im not sure if they will work on the new versions of X.

i need 2 navigations. one on the top and one below the slider/full width header image similar to this page: https://www.fmtv.com/join-today

maybe i can achieve this with topbar but i cant divide the top bar from the main navigation so i can move the topbar on the top and navigation below the slider/header image.
is there a way i can achieve this with X? would be better if we make it as 2 navigation bars. and place them one on the top and one below the slider.

thanks

Hello There,

Thanks for writing in! The layout that you wanted is not possible with X with the default navbar settings. If you are familiar with coding and stuff, with a little modifications it can be done. Regretfully custom development will be outside the scope of our support since it is more on the modification of how your header will look like.

On the other hand, if you are not familiar with coding, I would highly recommend that you upgrade to Pro and make use of the header builder. With the header builder feature (no coding required), you can build your header in anyway you like it. There are tons of options with header builder. Then again, I must tell you that Pro is a separate theme from X. X is for simple template design and solutions. With Pro, you can start from scratch and build different layouts with the use of header builder and the footer builder.

To learn more about Pro, please check it here: https://theme.co/pro/

If you wish to upgrade from X to Pro, you can check this out: https://theme.co/apex/forum/t/x-to-pro-conversion/104

Hope this helps.

hi there RueNel,

thanks for the reply. i am familiar with css, js coding but not with php. i know this can be achieved in php but not sure how. would be nice if ur team helps me to assign 2 navigations in the X theme via php than i can do the appearance myself. if not i will try it myself testing on a local environment first.

thanks

Hi,

To add a navigation, you can add this in your child theme’s functions.php file.

function add_navbar() {
     wp_nav_menu( array(
        'menu'           => 'Primary Menu',       
        'container'      => false,
        'menu_class'     => 'x-nav',
        'link_before'    => '<span>',
        'link_after'     => '</span>'
      ) );
}
add_action( 'x_before_view_global__slider-above', 'add_navbar', 10 );

Change Primary Menu with your Menu Name and you can change x_before_view_global__slider-above with x_before_view_global__slider-below to add it below slider.

Hope that helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.