Savour Template Off Canvas Menu - Question | JoomShaper

Savour Template Off Canvas Menu

C

CCT

Template 10 months ago

Hi, Would there be a quick fix when I tap off canvas parent menu that it will show sub menus? There is a very small rectangle to the right of the menu but it isn't very user friendly to know to click it to expand the menu.

Or if the off canvas menu can show any submenus already expanded without the need for click.

Thanks CT

0
1 Answers
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 10 months ago #178700

Hi there,

Thank you for reaching out, and sorry for the inconvenience.

1.The icon wasn’t loading from the default template, so I’ve enabled Font Awesome loading from SP Page Builder: https://prnt.sc/Ff0v3QexdSdA Now it’s working fine. (Later, we’ll fix it to load from the template.)

  1. For submenus that are already expanded without requiring a click, you’ll need to add the following JavaScript code to the Custom JS Code section:

    $(document).ready(function () {
     $(document).on('click', '#offcanvas-toggler, .offcanvas-toggler-secondary, .offcanvas-toggler-full', function () {
         $('.menu-parent').addClass('menu-parent-open');
         $('.menu-child').slideDown(0);
     });
    
     $(document).on('click', '.close-offcanvas, .offcanvas-overlay', function () {
         $('.menu-parent').removeClass('menu-parent-open');
         $('.menu-child').slideUp(0);
     });
    });

    please see the docs for custom js code in helix ultimate

Feel free to ask if you have further questions.

Best regards

0