Showing tagline, translations problem

Hi!

On my site I use X them, with Child theme. I wanted to show tagline under the logo text, but It didn’t worked so I’ve put a text instead tagline with javascript

jQuery(function($){ $('text here').insertAfter('.x-brand');});

I was happy, but know I translate the site (Polylang, Lingotek), and i can’t translate this line.

Can you give me some ideas?

The best would be to show the tagline, because the translator makes it automatically

Thanks for helping!
b

Hi There,

Please update your code to this:

jQuery(function($){$('english text').insertAfter('html[lang="en-US"] .x-brand');});
jQuery(function($){$('HU text').insertAfter('html[lang="hu-HU"] .x-brand');});

Genial, thanks!!!

You are fantastic!!

b

1 Like

You’re welcome.