• Resolved kingdave

    (@kingdave)


    I contacted Elementor Pro support on the topic Prisna Google Translate about the fact that on all our sites made with Elementor we have the problem that on the mobile version the translation does not work and we received this response:

    “Since the issue is caused by the Google website translator plugin and as we have no control over coding for third-party plugins or themes, we highly recommend that you report this issue to the support team for this plugin so they may further troubleshoot and provide any recommendations (or possible fixes) to resolve this issue.

    If they need any technical details regarding Elementor, they are free to open an issue on our Github page where our developers will be happy to collaborate directly with them.”

    All the details of the topic are in my previous report, which remained unexpected and without a practical solution, not being able to intervene on the elementor style on the code…

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author Prisna

    (@prisna)

    Greetings,

    As extensively explained in your previous post, the translation widget is expecting a single HTML element whose id must be google_translate_element. Expecting a single HTML element with a unique id is not arbitrary. The id attribute specifies a unique id for an HTML element. The value of the id attribute must be unique within the HTML document. No validator will validate an HTML document with duplicated ids. It’s been like this since almost the beginning of the internet.

    The script that dynamically clones the header should be smart enough to not duplicate these ids. The cloning script should’ve been built in a way that doesn’t violate long established rules; which is totally unrelated to the translation plugin. This is why it’s false to claim that the issue is within the translation plugin.

    If fixing the cloning script isn’t possible, then you could run another javascript script to rename/remove the id attribute on duplicated elements. Ideally, it’ll run right after the cloning is done. If you can’t do it by yourself, then you can hire someone to do it for you. You might want to check fiverr for extremely affordable developers.

    If you can’t find a way to rename/remove the duplicated id element, then unfortunately you’ll need to find another translation plugin.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘2 – it doesn’t work on mobile version’ is closed to new replies.