• Resolved floris246

    (@floris246)


    First, I register a footer menu in the theme:

    register_nav_menus( array(
    ‘footer-1’ => esc_html__( ‘Footer Menu’, ‘wp_starter’ ),
    ) );

    For some reason, WordPress renders these items with screen reader classes on them: <span class="screen-reader-text">Home</span>.

    The problem is is that when using the form builder Elementor, the screen-reader-text elements are hidden. So the items in my footer menu are also hidden!

    What’s the login behind this? And how can I remove these screen-reader-text classes for the footer menu?

    • This topic was modified 8 years, 7 months ago by floris246.
    • This topic was modified 8 years, 7 months ago by floris246.
Viewing 1 replies (of 1 total)
  • Thread Starter floris246

    (@floris246)

    My mistake, I found the wp_nav_menu function that ads the menu in the theme location. And removed this code: 'link_before' => '<span class="screen-reader-text">','link_after' => '</span>'

Viewing 1 replies (of 1 total)

The topic ‘Elementor plugin hides screen reader text so the footer menu items are hidden’ is closed to new replies.