Skip to content

JS:Custom submenu not working #2023

Closed
Closed
@abeel

Description

@abeel

Hi,
when i added my custom submenu to my redux parent menu, the link of submenu it is not clickable because of this line in redux.js :

        $( '#toplevel_page_' + redux.args.slug + ' .wp-submenu a, #wp-admin-bar-' + redux.args.slug  + '        a.ab-item' ).click(
                  function( e ) {
                             if ( $( '#toplevel_page_' + redux.args.slug ).hasClass( 'wp-menu-open' ) || $( this ).hasClass( 'ab-item' ) ) {
                            e.preventDefault();

                         var url = $( this ).attr( 'href' ).split( '&tab=' );
                    $( '#' + url[1] + '_section_group_li_a' ).click();
                return false;
            }
        }
    );

can you please correct this ? add else if isnot redux submenu

Thank you,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions