Quantcast
Channel: Kernan Hornburg
Viewing all articles
Browse latest Browse all 4

Fix for Broken Submenu on Twenty Thirteen for Tablet / iPad

$
0
0

You’ll need to insert the following java script to functions.js at line 53 before
// Better focus for hidden submenu items for accessibility.

// Fix sub-menus for touch devices.
if ( 'ontouchstart' in window ) {
menu.find( '.menu-item-has-children > a' ).on( 'touchstart.twentythirteen', function( e ) {
var el = $( this ).parent( 'li' );

if ( ! el.hasClass( 'focus' ) ) {
e.preventDefault();
el.toggleClass( 'focus' );
el.siblings( '.focus' ).removeClass( 'focus' );
}
} );
}

Core wordpress developers coded the fix. Hopefully it will be in the next update of Twenty Thirteen.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images