-
AuthorPosts
-
April 1, 2023 at 10:58 pm #1403254
Hi;
i need to translate the Modal Window Custom Content into EN, actually i am using DE.
For language switch i am using Polylang but these text blocks are not visible there, so i tried Loco but also here is not EN POT available … anyone deeper description for that?April 2, 2023 at 6:47 pm #1403313Hey Sebastian,
Thanks for your question, I don’t have much experience with Polylang, but I believe I have a workaround for the Modal Window Custom Content
I added text for both DE & EN to my Modal Window Custom Content Tab Label & Tab Content wrapping the text with spans and a custom language class, like this:<span class="lang-de">...</span> <span class="lang-en">...</span>
Then I added this css to my WordPress ▸ Customize ▸ Additional CSShtml[lang="en-US"] .lang-de { display: none; } html[lang="de-DE"] .lang-en { display: none; }
and when my site language is EN the Modal Window Custom Content popup shows only the EN text:
and same for DE
Perhaps someone else will know how to get Polylang to translate the Modal Window Custom Content popup, but hopefully this will help.Best regards,
MikeApril 8, 2023 at 10:05 am #1403856Hi MIke, it did it exact same way but it shows me both text blocks ..
April 8, 2023 at 5:24 pm #1403885Hi,
Thank you for the link to your site, I didn’t find the css rules added to your site so I added to your WordPress ▸ Customize ▸ Additional CSS and adjusted it from the US English (html[lang=”en-US”]) to the GB English that your site is using (html[lang=”en-GB”]):html[lang="en-GB"] .lang-de { display: none; } html[lang="de-DE"] .lang-en { display: none; }
I also found that using the line breaks <br> breaks the span class so I adjusted to this: </br> which works correctly.
Please clear your browser cache and check.Best regards,
MikeApril 9, 2023 at 7:10 pm #1403974Cool, many thx. The css was added on the top ..hmm .. maybe it was the span class breaking issue .. good to nkow for the futire.
Thank you -.– we can close this ticket
April 9, 2023 at 7:25 pm #1403980Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Translation cookie Popup window’ is closed to new replies.