Snippets: Sidebar Mobile Menu Dropdown When Clicking Link Instead of Arrow

By default the sidebar mobile menu has arrows that you can click to open the child elements (dropdown) this snippet makes it so you can click the parent element rather then the arrows to toggle the dropdown.

add_filter( 'wpex_localize_array', function( $array ) {
	$array['sidrDropdownTarget'] = 'li';
	return $array;
} );

Version Required:3.1.1+

Snippet Type: PHP

Posted Under: Mobile

All PHP snippets should be added via a child theme's functions.php file.