• Resolved giustip

    (@giustip)


    I appreciate your help; I’m a newbie in this.
    In “inc” folder constructor.php, i want to disable o remove this function “bayleaf_user_action_items()” for remove hamburger menu in a child theme of the the Bayleaf.
    This method did not work:

    if (!function_exists('bayleaf_user_action_items')) {
      function bayleaf_user_action_items() {
        // 
      }
    }

    This is a action hook?

    add_action( 'bayleaf_inside_header', 'function_to_add' );
    function function_to_add () {
    	echo '<p>Done!</p>';
    }

    It works, but it does not remove the menu.
    And this did not work either:
    remove_action( 'bayleaf_inside_header', 'bayleaf_user_action_items' );

    In documentation, this function “bayleaf_user_action_items“, is a wrapper functions.
    Thank’s!

    • This topic was modified 5 years, 5 months ago by giustip.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Veda

    (@vedathemes)

    Hi there,

    Thanks for trying bayleaf theme.

    The function you mentioned is called from an another library function “bayleaf_markup” which can be found in “lib/multiuse-functions.php”.

    In short, copy paste following code to remove header widget (user action items).

    add_filter( 'bayleaf_markup_header_widgets', '__return_empty_array' );

    read ‘lib/multiuse-functions.php’ line 44 to understand the code.

    Please inform if you need any other help.

    Thanks

    Thread Starter giustip

    (@giustip)

    I tried it and it works perfectly.
    Thank you very much … I am very grateful.
    Not only did I learn, I also found the minimalism I was looking for.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove hamburger menu in the Bayleaf child theme?’ is closed to new replies.