Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #482439

    Hallo zusammen

    Ich erlaube mir auf Deutsch meine Anfrage zu formulieren:

    Ich habe das Hauptmenu in der Sidebar; siehe Link zu meiner Seite. Das Menu ist eingeklappt und nur bei MouseOver “Bildergalerie” und “Links” wird das MegaMenu angezeigt.

    Problem: Sobald das Responsive Menu angewendet wird (Mobiles) erscheint das komplette Menu aufgeklappt; iPhone, Z1, Tablets 7″ Hochformat usw

    Frage: Wie kann ich das Menu ein- und ausklappen? So dass der User nur bei Bedarf die Anzeige des MegaMenus ansteueren kann?

    Danke für eure Hilfe, eilt nicht :-)
    Herzlichen Gruss
    Dani

    #483293

    Hi Daniel!

    please refer to this answer: https://kriesi.at/support/topic/mega-menu-not-accessible-on-mobile-devices/#post-124095

    Best regards,
    Andy

    #483314

    Hey Andy

    Thx for the answer. My problem is that on Mobile devices all levels are shown; the whole tree (so it’s not very easy looking for visitors).

    I would like to have a collabsed menu with the possibilty (marked by point or whatever) to open up the level 1 with the mega menu behind. I hope my english is not too bad and helps to explain my wish.
    Best regardfs
    Daniel

    #483666

    Hi!

    Please use this in the functions.php file to enable the “Hide Mobile Menu Submenu Items” option if header is set to “Left sidebar”:

    add_action('avf_header_classes', 'avf_header_classes_mod', 10, 3);
    function avf_header_classes_mod($class, $necessary, $prefix) {
    	$class['header_mobile_behavior'] = 'header_mobile_behavior';
    	return $class;
    }

    Cheers!
    Ismael

    #484008

    Hi

    Thanks again very much. I included:

    add_action('avf_header_classes', 'avf_header_classes_mod', 10, 3); function avf_header_classes_mod($class, $necessary, $prefix) {
    $class['header_mobile_behavior'] = 'header_mobile_behavior';
    return $class;
    }

    In the functions.php. After the forntend was blanc and the backend also. What did I wrong?

    Regards
    Daniel

    #484316

    Hey!

    Please copy the code directly from this forum, not from your email. Make sure that that symbols are not converted to something else.

    Cheers!
    Ismael

    #484319

    Hey …

    I did copy the code directly. Is there a specific location to put the code in?

    I tried again and got a blanc frontend and backand.

    Thanks
    Daniel

    #484465

    Hey!

    In that case, please remove the code from functions.php file and then create a temporary admin login and post it here privately so we can add the code for you.

    Cheers!
    Yigit

    #484820

    Hey

    The code is removed and the functions.php like it was.

    Thx very much
    Regards
    Daniel

    Ps. It’s right that i have to refresh the functions.php after each update of the Enfold theme, isn’t it?

    #485156

    Hey!

    We added the code in the functions.php file and it works as expected: http://www.rudolfvonrohr.com/blog/

    Please remove browser cache before testing the page.

    Regards,
    Ismael

    #485171

    Hey Ismael

    I thank you very much for your help. Works super fine …. have a great day

    Best regards from Switzerland
    Daniel

    One more question: how can i colour the icon where i am on smart phones? and make the icons bigger?

    • This reply was modified 8 years, 7 months ago by salalao.
Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Hauptmenu zeigt MegaMenu im Responsive Mode an; resp. ist voll ausgeklappt’ is closed to new replies.