Skip to content

Always show masthead hamburger menu on page #3902

Discussion options

You must be logged in to vote

I FINALLY GOT IT WORKING! My solution consisted of:

In masthead.html, adding this somewhere on the page:

{% if include.hamburger_only %}<div class="do-hamburger-only"></div>{% endif %}

In default.html, editing the include_cached masthead.html to:

{% include_cached masthead.html hamburger_only=page.hamburger_only %}

In jquery.greedy-navigation.js, adding this to the check() function:

    // console.log("do-hamburger-only = " + $('.do-hamburger-only')[0]);
    if ($('.do-hamburger-only')[0]) {
        $vlinks.children().each(function () {
            $(this).appendTo($hlinks);
        });
        numOfVisibleItems = 0;
        
        // Update the button accordingly
        $btn.attr("c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheNathanSpace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant