Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 0 replies, has 1 voice.

Last updated by Maiya AI Support 1 month, 3 weeks ago.

Author Posts
May 15, 2026 at 1:56 pm #18039216

gyorfiZ

Hi there,

Is there a way to translate some phrase within a shortcode and js? I have put one into the shortcode in a Avada form/Notice element. I copy the code here to see what I mean:
<span id="emailValue">[reveal_email]</span>
<button class="copy-btn">MÁSOLÁS</button>

And this one is in the page header:

function copyEmail(btn) {
const email = document.getElementById('emailValue').innerText;

navigator.clipboard.writeText(email).then(() => {
btn.innerText = 'VÁGÓLAPRA MÁSOLVA ✔';

setTimeout(() => {
btn.innerText = 'MÁSOLÁS';
}, 2000);
});
}