This also depends on the theme used. Do you have a link where you can have a look at it?
Hi, I’m experiencing the same issue…
I’ve you found a workaround? This behaviour occurs on every theme I tryed : TT23, TT24, TT25, Ollie
It happens on iPhone 6s (iOS 15.8) and iPhone 13 (iOS 16.0.2) with Firefox and Safari.
Thanks by advance for sharing!
-
This reply was modified 1 year, 4 months ago by
Obje.
Hi! i didn’t get a solution as it’s a wordpress native js bug, so what i did was to put the navigation in a custom shortcode and then called it in the location i wanted.
Hi Katia,
Thank you for your reply! So you use a FSE shortcode block and call in it your menu? How do you generate the menu as the Appearance / Menu is not available anymore into the Administrator sidebar…?
So sorry if my question sound dumb. As a Classic Theme developper, I’m totally new to Block Theme !
Thank you
hello!
I made this code that I added in functions.php of my child theme
and then I show it by adding a shortcode block and adding [custom_primary_menu].
This code works only to show the main menu.
// Crear un shortcode para mostrar el menú
add_shortcode( 'custom_primary_menu', function() {
if ( has_nav_menu( 'primary' ) ) {
ob_start();
wp_nav_menu( array(
'theme_location' => 'primary',
'container' => 'nav',
'container_class' => 'custom-navigation',
) );
return ob_get_clean();
} else {
return '<p>No hay un menú principal asignado</p>';
}
} );
Ok great !
But how can you configure the menu called by the shortcode, as the menus administration is now handled by the Navigation Block??