Es en el siguiente archivo:
/wp-includes/nav-menu-template.php
salida html comienza en la línea 82
Seamos bien, aquí está el código, reemplace a partir línea 82 a 109:
$output .= $indent . '<li' . $id . $value . $class_names .'>';
$attributes = ! empty($item->attr_title) ? ' title="' . esc_attr($item->attr_title) .'"' : '';
$attributes .= ! empty($item->target) ? ' target="' . esc_attr($item->target ) .'"' : '';
$attributes .= ! empty($item->xfn) ? ' rel="' . esc_attr($item->xfn ) .'"' : '';
$attributes .= ! empty($item->url) ? ' href="' . esc_attr($item->url ) .'"' : '';
$item_output = $args->before;
$item_output .= '<a'. $attributes .'><span>';
$item_output .= $args->link_before . apply_filters('the_title', $item->title, $item->ID) . $args->link_after;
$item_output .= '</span></a>';
$item_output .= $args->after;
$output .= apply_filters('walker_nav_menu_start_el', $item_output, $item, $depth, $args);
}
/**
* @see Walker::end_el()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Page data object. Not used.
* @param int $depth Depth of page. Not Used.
*/
function end_el(&$output, $item, $depth) {
$output .= "</li>\n";
}
}
Gracias por su respuesta, pero lo tengo. Debería ser así Php wp_nav_menu (array ('theme_location' => 'primary', 'link_before' => '', 'link_after' => '')); ?> – NewUser
Además, nunca debería editar archivos básicos de WordPress como ese. Si realiza una actualización automática, todos los cambios se perderán y potencialmente se romperá el sitio. – navitronic