mikmoro
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Register form translacionIndeed, the problem was in the WordPress configuration file. SOLVED.
Thank you so much for your help.
This may be the fastest response I’ve ever received 🙂
Best regards.Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] widget codeFIXED. In case it happens to someone else, just adding the attribute in the corresponding JS file fixes it. In this case, the file is “wp-content/plugins/gtranslate/js/fc.js” (depending on the chosen widget type). Adding the attribute on line 95 adds it to the HTML without a problem:
languages.forEach(function(lang) {
var el_a = document.createElement(‘a’);
el_a.href = get_lang_href(lang);
el_a.title = lang_array[lang];
el_a.setAttribute(‘data-gt-lang’, lang);
el_a.setAttribute(‘role’, ‘button’);
el_a.classList.add(‘glink’, ‘nturl’, ‘notranslate’);
lang == current_lang && el_a.classList.add(‘gt-current-lang’);Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] widget codeGlad to hear it. Thank you for your help.
Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] widget codeOkay, thank you very much. This may have affected a lot of people with personal adaptations in the widget code.
Perhaps it would be a good idea to make that small modification to comply with the accessibility standard in the use of type “a” links for the actions that a button should carry out.I will try to fix it.
Greetings.Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] widget codeThank you very much for your reply. I don’t quite understand, that is: until half an hour ago, the box in the settings showed how to modify the generated HTML code to your liking, so it allowed me to add that attribute without problem. The plugin has been updated and now it no longer complies with the accessibility standard (use that “role button” when using link tags instead of buttons for actions), removing my attributes added to each link. I’m assuming that HTML is generated in some PHP file, and I’d like to know where to edit it to add the attribute back.
I find it easier than trying to add that javascript code, which I’m not sure where I would need to do to make it work. Thank you very much again.