Hey @Juanjo,
Thanks for writing in! The aria labels were added to the elements as they are registered as an element. If you want to change the label, you can use the PHP gettext()
filter instead like how it is used here:
For example;
// Translate texts
// =============================================================================
function change_aria_label($translated) {
$translated = str_ireplace('Toggle Modal Content', 'Toggle Menu Content', $translated);
return $translated;
}
add_filter('gettext', 'change_aria_label' );
// =============================================================================
The code above serves as an example code. Feel free to modify it when needed. Please note that custom coding is beyond the scope of our support. You will have to maintain any custom coding to make sure that it will still work after any updates or does not create any issues or incompatibility in the future.
Be advised that custom coding is beyond the scope of our support under our Support Policy. If you are unfamiliar with code and resolving potential conflicts, you may select our One service for further assistance.
Best Regards.