This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Combined the primary and secondary menu

Resolved 4 replies developergeneral
8 years ago · Last reply by halim casim 8 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.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Alex S Staff 8 years, 2 months ago

    Hi Halim,

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

  2. halim casim 8 years, 2 months ago

    (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. Alex S Staff 8 years, 2 months ago

    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. halim casim 8 years, 2 months ago

    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.

Have a different question or issue?

Start New Thread