• Resolved billrodgers2013

    (@billrodgers2013)


    I only just noticed this.the parent menu item is not working on Android. Am using Chrome with Android 5.0. Haven’t tested with any other devices.
    Parent memnu item works fine in IE and Chrome on desktop.
    Am I missing something here?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Seems to be a common problem reported elsewhere in the Forum. No known solution at moment.

    Are you using an “hover menu” in which parents are links themselves?
    If yes wanna try this patch?
    Add the following code to your child-theme functions.php

    add_filter('tc_menu_open_on_click', 'mobile_menu_patch', 20, 2);
    function mobile_menu_patch($replace, $search){
        if ( wp_is_mobile() && 'hover' == esc_attr( tc__f( '__get_option' , 'tc_menu_type' ) ) )
            return $search;
        return $replace;
    }
    //add tc-hover-menu class
    add_filter('tc_menu_args', 'add_tc_hover_menu_class');
    add_filter('tc_menu_wrapper_class', 'add_tc_hover_menu_class');
    function add_tc_hover_menu_class($arg){
        if ( ! (wp_is_mobile() && 'hover' == esc_attr( tc__f( '__get_option' , 'tc_menu_type' ) ) ) )
            return $arg;
    
        if ( is_array($arg) ){
            $arg['menu_class'] = 'nav tc-hover-menu';
            return $arg;
        }else
            return $arg . ' tc-hover-menu-wrapper';
    }

    Rocco rocks 😉

    … if it works 😀

    Thread Starter billrodgers2013

    (@billrodgers2013)

    Thanks for that. It works perfectly! 🙂
    And yes I am using an “hover menu” in which parents are links themselves?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Parent menu item not working on Android’ is closed to new replies.