Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #9456

    When the home page is loaded, I want the main navigational menu to be in the collapsed mode (as if the user had already clicked the “hide sidebar and content” link). They can always go and click the expand button, but I’d like the site to load with the menu collapsed. Is this possible?

    Thanks in advance!

    #64771

    Hey,

    you can add a jquery trigger event for this task. It’s not a perfect solution because you need to use a static time interval and this can cause issues (e.g. if the client js code processing is too slow, etc.) but better than nothing. Open up js/avia.js and replace:

    avia_item_fade({items: '.preview_image', hover: '.post-entry'});

    with:

    avia_item_fade({items: '.preview_image', hover: '.post-entry'});

    setTimeout(function () {
    jQuery('.hide_content').trigger('click');
    }, 600);

    You can replace 600 with an higher or lower value – however lower values may cause problems (because the gallery function requires some time for the initialisation).

    #64772

    Dude -

    That works perfectly.. exactly what I wanted!

    Would you know if there is a way to also put a delay, so that the menu reappears after 5 seconds or so. Thank you so much!

    #64773

    You can add the code a second time and use an higher delay value (e.g. 5000ms = 5 seconds)

    #64774

    Imma bring life to this thread, as it covers exaclty what im trying to do..BUT…is it possible to achieve that Menu bar dissapears ONLY on Home page?

    #64775

    Mortus, I just posted this question and came up with a solution although it seems to have one bug for me. Take a look at the last two entries on this thread: http://www.kriesi.at/support/topic/customizing-box-shape-of-menu-and-content-area-hiding-menu-on-landing-page

    Maybe it will work for you.

    Samantha

    #64776

    thank you, Samantha :)

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Collapse Main Menu on Home Page’ is closed to new replies.