• I have put the native wordpress navigation block but this does not work on older devices like iphone 7 or below.

    Does anyone know how to fix the problem?

    He puesto el bloque de navegación nativo de wordpress pero este no funciona en dispositivos antiguos como iphone 7 o abajo.

    Alguien sabe como puedo solucionar el problema?

Viewing 6 replies - 1 through 6 (of 6 total)
  • threadi

    (@threadi)

    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 month, 2 weeks ago by Obje.
    Thread Starter bird_k_97

    (@katia97)

    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

    Thread Starter bird_k_97

    (@katia97)

    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??

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.