• Hi,

    in the oceanwp/inc/helpers.php the translation support for the menu search field aria-label is missing. Would be nice if someone could add it, so that the aria-label will be translated for screen-reader users.

    Translation support missing: esc_attr( ‘Search website’, ‘oceanwp’ )

    Original Code:

    // Add search item to menu
    $items .= ‘<li class=”search-toggle-li”>’;
    if ( ‘full_screen’ == $header_style ) {
    $items .= ‘<form method=”get” action=”‘. esc_url( home_url( ‘/’ ) ) .'” class=”header-searchform”>’;
    $items .= ‘<input type=”search” name=”s” value=”” autocomplete=”off” />’;
    // If the headerSearchForm script is not disable
    if ( OCEAN_EXTRA_ACTIVE
    && class_exists( ‘Ocean_Extra_Scripts_Panel’ )
    && Ocean_Extra_Scripts_Panel::get_setting( ‘oe_headerSearchForm_script’ ) ) {
    $items .= ‘<label>’. esc_html__( ‘Type your search’, ‘oceanwp’ ) .'<span><i></i><i></i><i></i></span></label>’;
    }
    if( !function_exists(‘is_plugin_active’) ) {
    include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ );
    }
    if ( is_plugin_active( ‘sitepress-multilingual-cms/sitepress.php’ ) ){
    $my_current_lang = apply_filters( ‘wpml_current_language’, NULL );
    if( ! empty($my_current_lang) ){
    $items .= ‘<input type=”hidden” name=”lang” value=”‘. $my_current_lang .'”/>’;
    }
    }
    $items .= ‘</form>’;
    } else {
    $items .= ‘‘;
    $items .= ‘<span class=”icon-magnifier” aria-hidden=”true”></span>’;
    $items .= ‘
    ‘;
    }
    $items .= ‘‘;

Viewing 1 replies (of 1 total)
  • Hi,

    OceanWP uses various search forms and styles, and they all have aria labels added to their respective codes. Please let us know which menu style and which search option are you using on your site so that we can check if there is really an issue on our end?

Viewing 1 replies (of 1 total)

The topic ‘Bug Translation Support Search’ is closed to new replies.