Home>Support>Combined the primary and secondary menu

Combined the primary and secondary menu

By halim casim, 6 years ago. Last reply by halim casim, 6 years ago.

hello,
can you help me for this?
how can i combined my primary menu and secondary menu on responsive menu mobile?…

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Halim,

    Do you have a public URL where we can take a look at your setup?

  2. 6 years, 10 months ago halim casim

    (function(document, $, undefined){

    function __combineMenus(){
    if ( ( $( ‘.secondary-menu’ ).css(‘display’) === “block” ) && $( ‘.secondary-menu’ ).length > 0 ) {
    $( ‘.secondary-menu > li’ ).addClass( ‘moved-item’ );
    $( ‘.secondary-menu > li’ ).appendTo( ‘#mobile-menu’ );
    $( ‘.secondary-menu’ ).hide();
    } else if ( ( $( ‘.mobile’ ).css(‘display’) === “block” ) && $( ‘.mobile’ ).length > 0 ) {
    $( ‘.mobile’ ).hide();
    $( ‘#mobile-menu ul.menu > li.moved-item’ ).appendTo( ‘.slide-container’ );
    $( ‘.secondary-menu > li’ ).removeClass( ‘moved-item’ );
    }
    }

    $(document).ready(function () {

    __combineMenus();

    // run test on resize of the window
    $( window ).resize( __combineMenus );

    });

    })( document, jQuery );

    its this correct function ill js function for combine a primary and secondary menu but i can’t find it a correct code

  3. 6 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Halim,

    Unfortunately, this isn’t something we can assist you with as it’ll require a fair amount of custom coding. This is beyond the scope of what we can help you with on our forums, but you could hire a developer to implement this for you or help you with it.

    We recommend using Codeable. You’ll be able to hire someone at an hourly rate to do this work for you.

  4. 6 years, 10 months ago halim casim

    thank you sir alex s for your kindness but on your own way do you any way to how can combine it a two navigation for responsive menu mobile?

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More