chavba profile

Home Forums chavba

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • chavba
    Participant

    ???? This problem was 4 months, 4 weeks ago.
    Shufflehound support didnt help. I resolved and share the js lines that resolved the ANCHOR LINK mobile menu closing. You can’t see now the result because i removed anchor links.. but I shared the solution for others if someone wanna use anchor links onepage style and helping Shufflehound with the shared resolution..

    Then bartopolo named user asked me about this, you or other moderator then asking him open new thread. I answered him then you or other moderator asked me repeatedly open new thread but previously bartopolo named use asked. Then now you again don’t understand the previous comments and asking ME where is the problem on my site while the site no longer use anchor linking in the mobile navbar anymore so you can’t understand the problem at all… let it go please.. It’s clear you don’t care and don’t want to understand and read back the situation or don’t know what does it mean when a mobile navbar should closing when the link do not redirecting to another page instead using just an onepage anchor link…

    • This reply was modified 4 years, 2 months ago by chavba.

    chavba
    Participant

    it was my own thread, and was closed because i resolved previously…

    chavba
    Participant

    attach image because the form show html version don’t know why..

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

    chavba
    Participant

    jQuery(document).ready(<span class=”__in”>function</span>($){
    $( ‘.<span class=”__in”>sh</span>-<span class=”__in”>nav</span>-<span class=”__in”>mobile</span> <span class=”__in”>li</span> a’ ).on(“<span class=”__in”>click</span>”, <span class=”__in”>function</span>(){
    $(‘.<span class=”__in”>sh</span>-<span class=”__in”>header</span>-<span class=”__in”>builder</span>-<span class=”__in”>mobile</span>-<span class=”__in”>menu</span>’).<span class=”__in”>click</span>();
    });
    });

    I used this. Worked, but this for creative template wp bakery.

    Dont know the code how works for unyson based headers in other templates..

    chavba
    Participant

    Solution for this topic

    Okay I resolved. If anyone has this problem here is my solution:
    Edit wp-content/themes/jevelin/js/scripts.js file and add:

    $( ‘.sh-nav-mobile li a’ ).on(“click”, function(){
    $(‘.sh-header-builder-mobile-menu’).click();
    });

    Now the anchor navigation closes menu on click!

    chavba
    Participant

    I see this in the scripts.js but doesnt work..

    https://bjrd.hu  – this is my site, please check the anchor menu items and the hamburger menu

       /* Close mobile dropdown on click */
        $('.sh-header-mobile-dropdown li.menu-item:not(.menu-item-has-children)').on( 'click', function() {
            if( $(this).find('> a').attr('href').indexOf("#") >= 0 ) {
                $('.sh-header-mobile .sh-nav-dropdown .c-hamburger').trigger('click').toggleClass('is-active');
            }
        });
    
    
Viewing 6 posts - 1 through 6 (of 6 total)