Home Forums WoodMart support forum Call jquery

Call jquery

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

    Oriol Duarri
    Participant

    Hello,

    I have problems making a call to the jquery library. The result is satisfactory, but then it gives me problems in other parts of the page, specifically with Revolution Slider.

    The situation is this: I do not like the drop-down menu of the mobile version. I have removed the arrows and I have customized the click to make the whole drop-down button. This code I have placed in the Theme Settings, and there I also created the call to jquery. It works, but the Revolution Slider that I have on the main page stops working correctly. I have no choice but to delete the jquery call from the Theme Settings and then the menu is no longer drop-down.

    When I place the call to jquery in a snippet, it works correctly as well,

    Attachments:
    You must be logged in to view attached files.
    #131442

    Oriol Duarri
    Participant

    I forgot to show you the Revolution Slider error.

    Attachments:
    You must be logged in to view attached files.
    #131468

    Artem Temos
    Keymaster

    Hello,

    Sorry, but we don’t know what is wrong with this code and why it conflicts with other plugins. It is not a theme problem so we can hardly advise you here.

    Regards

    #131825

    Oriol Duarri
    Participant

    Hi,

    Let me explain it again, the mobile nav menu have a template configuration that we need to change and don’t know how. Now, if you have an element with sub elements on the menu, in the mobile navigation shows an arrow and you have to click on the arrow for display the sub elements,

    What we want is to being able to click on any site of the button, and not just on the arrow side, like seen in the screenshot: http://prntscr.com/oc64d5

    Hope to explain me well,
    Thanks

    #131827

    Artem Temos
    Keymaster

    There is no such option for our mobile menu. In this case, there will not be an ability to click on the actual parent link. It will show submenu dropdown but will not redirect you to the page what you are trying to click on.

    #131905

    Oriol Duarri
    Participant

    Hi, that’s not a problem for us, our links have # and just displays a title for dropwdown the submenu elements, thats why we want this function for us,

    #131909

    Artem Temos
    Keymaster

    Try to use the following JS code for this purpose

    jQuery('.mobile-menu-tab').on('click', '.item-level-0 > a', function( e ) {
    	e.preventDefault();
    	jQuery(this).parent().find('>.icon-sub-menu').click();
    });
Viewing 7 posts - 1 through 7 (of 7 total)