PEGGY1233456 Posted February 22, 2018 Share Posted February 22, 2018 Bonjour la foule en délire Je suis sous prestashop 1.6.1.18, mon site www.pearlaccess.com Ce que je voudrai faire j'ai un menu catégorie vertical colonne de gauche qui ne se déploie que lorsque l'on clique sur une "icone menu" je voudrai qu'il s'affiche directement mais je ne sais pas quoi modifier dans mon fichier js pour y parvenir. Quelqu'un pourrait-il ne dire quoi faire. Mon js ci-dessous, enfin le bout que je crois être le bon. Voilà ma grande galère de ces deux jours. Merci par avance de votre aide précieuse!!! $(window).load(function() { $(document).on('click', '#wt-menu-ver-left .icon-drop-mobile', function() { $(this).next().toggle('slow'); $(this).toggleClass('opened'); }); if($(window).width() > 750) { $("#index .wt-menu-ver-left .category-left").css('display','block'); menuVerHover(); } else { //$("#index .wt-menu-ver-left .category-left").css('display','none'); menuVerClick(); } var width_menu_content = $('#columns').width() - $('#wt-menu-ver-left').width(); $('#wt-menu-ver-left ul.menu-content li div.wt-sub-menu').each(function(index, element) { var width_sub = parseInt($(this).children('.v-menu-sub-width').val()); if($(window).width() < 1024 && width_sub >= 6) width_sub = 12; if($(window).width() < 1024 && width_sub < 6) width_sub = 6; var width_sub_result = parseInt(width_menu_content/12*width_sub); $(this).width(width_sub_result); }); $(document).on('click', '#wt-menu-ver-left .title-other-page, #wt-menu-ver-left .title-home-page', function() { $(this).next().addClass('opened'); }); $(document).on('click', '#wt-menu-ver-left .close-menu-content', function() { $('.content-vertical-other-page').removeClass('opened'); $('.content-vertical-home-page').removeClass('opened'); }); }); Link to comment Share on other sites More sharing options...
BeComWeb Posted February 22, 2018 Share Posted February 22, 2018 Bonsoir. Tu as acheté le thème "WT Megastore" ? Link to comment Share on other sites More sharing options...
PEGGY1233456 Posted February 22, 2018 Author Share Posted February 22, 2018 (edited) Bonsoir BeComWeb, Oui c'est bien ça. Enfin non j'ai juste acheté wt mega menu. Edited February 22, 2018 by PEGGY1233456 (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted February 22, 2018 Share Posted February 22, 2018 Ca se passe plutot dans le tpl (et commenter le js) Supprimer les classes OPEN ET CLOSE et tous les display:none des ul Link to comment Share on other sites More sharing options...
PEGGY1233456 Posted February 22, 2018 Author Share Posted February 22, 2018 Merci beaucoup Eolia! Je fais ça dès demain matin! Une excellente soirée à vous. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now