Our support team is on holiday from January 1st to 7th. Responses may be delayed, but we'll be back on January 8th. Happy Holidays!

Okay
  Public Ticket #2428098
Mobile menu not collapsing
Closed

Comments

  • deftone started the conversation

    Hi, 

    I know my support has been expired, but I have never used it and I only need you to help me with something that, I guess, should work and shold be a function of the theme, however, for some reason I can not get it work.

    I am setting up a simple onepager for a friend and I have a problem with mobile menu built with menu anchors linking to sections. The problem is that on mobile devices the hamburdr menu does not collapse after clicking a menu item. This is very confusing for a user and I guess it should collapse. Can you help me please? I have installed the "Insert Headers Footers" Plugin and tried with this code:

    jQuery(document).ready(function($) {
     $('.navbar-collapse li a').click(function() {
            if ($(this).hasClass('nav-link')){
                $(this).closest('.navbar-collapse').removeClass('show');
            }
        });
    });


    but it won't work. :( I guess due to the fact that your code is missing the collpase funtion.

    I am customizing this demo

    https://preview.themeforest.net/item/bifrost-simple-portfolio-wordpress-theme/full_screen_preview/23180008

    and I see that the menu here works the same way, so I guess it needs some fix too ;) 


    I hope you are abble to help.

    Best regards

  •  675
    Neuron replied

    Hi,

    No worries, we'll be pleased to helpsmile.png

    Add this one instead, it will remove the class active from the mobile menu when one of the menu items is clicked on mobile.

    jQuery(document).ready(function($) {
        $('.m-nav-menu--mobile ul li.menu-item.current_page_item > a').on('click', function(){
            $(this).closest('.m-nav-menu--mobile').removeClass('active');
        });
    });
    

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • deftone replied

    Thank you for your promt reply :) 

    I have tired this code but it wont work. Should I paste it somewhere else than here

    DZlu3Ne.png

    i have tested header and footer (it only generates warnings above or under tha page on mobile, but there is no change in the way the menu works.

  •   deftone replied privately
  •   deftone replied privately
  • deftone replied

    The provided code did not work. Can you help me> I have snet you couple private messages... 

    regards

  •  675
    Neuron replied

    Hi,

    I am very sorry for the late reply.

    Have you been able to solve anything or all the questions stands? Can you please provide me with URL's of the pages that you're trying to fix.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  •  675
    Neuron replied

    As for the WP Forms styling.

    .wpforms-form input {
        color: #fff !important;
    }

    And the submit button

    .wpforms-form .wpforms-submit {    
        border: 1px solid #fff !important;
    }

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • deftone replied

    Hi, 

    Thank you for your reply. The only thing that is still not solved is the way mobile menu works. I'd still rathere have it autocollapse after clicking on a menu item

    The page is here https://basket7.pl

  • deftone replied

    And thank you for the custm css of the form. It all worked smooth :)

  •  675
    Neuron replied

    Hi,

    Please provide me with your wp-admin, I will add the jQuery quicklysmile.png

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  •   deftone replied privately
  •  675
    Neuron replied

    Hi Deftone,

    The script should have been wrapped with script tags.

    - https://prnt.sc/sx28o0

    Sorry, I've forgot that.

    Feel free to ask for anything you need.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • deftone replied

    You rock Man! It works fine now.

    Thank you :)


    Cheers

  •  675
    Neuron replied

    You are welcome anytime, feel free to ask for anything you needsmile.png

    If you like our theme, please leave us a rate with 5 stars at ThemeForest, that would help us a lot.

    Kind Regards,
    NeuronThemes


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • deftone replied

    I've just did it, with pleasure :) 

  •  675
    Neuron replied

    Thank you very much, feel free to ask for anything you needsmile.png

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • deftone replied

    Hi, 

    I have encountered some serious problem with the Neuron Core plugin which makes the site to crash whenever I want to use the customizer. Once I click it I get the white screen with the information about criticall error and an e-mail informing about it.

    E_ERROR został spowodowany w linii 507 pliku /home/ledigital/ftp/basket7/wp-content/plugins/neuron-core-bifrost/includes/plugins/kirki/packages/kirki-framework/field-typography/src/Field/Typography.php. Komunikat błędu: Call to undefined method Kirki\Field\URL::get_from_path()
    


    The website works fine, but whenever I clinct on Cutomizer it results with this error which makes any tweaks and further dev very hard, if not impossible... 

    Any clue what causes this one and how can I reslove it? 

    best

    Pawel

  •  675
    Neuron replied

    Hi Pawel,

    Please install a fresh copy of Bifrost, Neuron Core and Bifrost should be on version 2.1.0.

    Let me know if the issue is gone after that, if not you can try installing this plugin.

    - https://wordpress.org/plugins/kirki/

    This will fix that.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • deftone replied

    instalation of Kirki plugin did the trick :) thank you

    as for the theme, I have downloaded it about 2 weeks ago and used the one from my themeforest downloads, 

    it shows me that this is 2.1.1. i1hgygV.png

    i am not sure how to revert it to 2.1.0. and since it works after kirki installation I'd rather leave it his way

    kind regards


  •  675
    Neuron replied

    Hi,

    I'm sorry for the late reply.

    No worries, latest version is 2.1.1. We simply forgot to update in the changelog.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.