• Skip to primary navigation
  • Skip to main content

BookingWP™

WordPress Appointment Booking Plugins for WooCommerce

  • Get Appointments
  • Contact
  • My Account

Remove Mobile menu

Home › Forums › Deprecated › Bizznis

Log in
Bizznis
  • Jonathan Fokker
    Customer
    11 years, 7 months ago

    How can I remove the mobile friendly menu in the theme? I am going to use another one.

    This is what I have now in my child theme functions.php:

    //* Remove menu toggle on mobile devices
    remove_action ('bizznis_header_bottom','bizznis_toggle_open_text');

    What am I doing wrong?

    Greetings,

    Jonathan

    Zeljan Topic
    Support
    11 years, 7 months ago

    No, add this:

    remove_filter( 'nav_primary_before', 'bizznis_mobile_right', 10, 2 );

    You also need to remove the mobile menu CSS styling from your child theme’s style.css file.

    Jonathan Fokker
    Customer
    11 years, 7 months ago

    Ok. Thanks.

    I see you have an overview of the action hooks and filter hook definitions in there. But I missed the bizznis_mobile_right.

    Will you update these filters more?

    What are the 10 and the 2 about?

    Zeljan Topic
    Support
    11 years, 7 months ago

    The filter in this case is ‘nav_primary_before’, which is documented.

    10 is a filter importance (10 is default and neutral). If you would hook another function to this filter with 9, it would be taken instead.

    2 is a number of accepted arguments for the hooked function. In this case, there are 2 arguments hooked in, first one is $menu and second one is $args.

    I hope it’s more clear now, do let me know if you need more guidance.

    Jonathan Fokker
    Customer
    11 years, 7 months ago

    OK. Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Follow @bookingwp 900+ followers

  • About
  • Blog
  • Support
  • Terms
  • Privacy

© BookingWP™