VincentPerrin
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twelve] Styled Mobile MenuHi,
It’s a nice idea that could help many others.
Could you share your solution?
Thxvincentperrin.com
Forum: Themes and Templates
In reply to: [Twenty Twelve] Menu not opening on smartphonesHi,
This solution was already the original code for me, so I had to look for a fast and simple solution by myself and I post it here to help those who faced the same bug as me.
You can inject a bit of javascript in header.php to toggle the ul menu tag:
– go to the wp editor for header.php
– find
<button class=”menu-toggle”><?php _e( ‘Menu’, ‘twentytwelve’ ); ?></button>
– just add a bit of javascript as follows:
<button class=”menu-toggle” onclick=”el = document.getElementById(‘menu-menu-principal’); el.style.display = (el.style.display != ‘inline’ ? ‘inline’ : ‘none’);”><?php _e( ‘Menu’, ‘twentytwelve’ ); ?></button>vincentperrin.com
Forum: Themes and Templates
In reply to: [Twenty Twelve] Desktop menu instead of mennu button on mobile.I had the same issue, the “solution” was already the original code, so I had to look for a fast and simple solution by myself.
You can inject a bit of javascript in header.php to toggle the ul menu tag:
– go to the wp editor for header.php
– find
<button class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></button>
– just add a bit of javascript as follows:
<button class="menu-toggle" onclick="el = document.getElementById('menu-menu-principal'); el.style.display = (el.style.display != 'inline' ? 'inline' : 'none');"><?php _e( 'Menu', 'twentytwelve' ); ?></button>Cheers!
vincentperrin.com