• Hey. I use your theme vega. All is well, but there is a need for multilanguage. Installed the plug-in polylang, the task appeared to translate Banner Heading and Banner Text. Can you specify in detail how to do this? Thank you

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @bombayo,

    Thank you for getting in touch with us.

    Could you send me the screenshots of elements with translation issues, please?

    Here you can find more details about using Polylang plugin: https://polylang.pro/doc-category/getting-started/

    Thank you for your time in this.

    Best regards

    Thread Starter bombayo

    (@bombayo)

    Hi. I attach a screenshot. these 2 inscriptions on the banner. https://pixvenue.com/showimage/ScreenShot_3664788_27508333.png
    Thank you

    Hi there,

    This heading comes from WP Customizer. I’m not a Polylang expert but it seems they provide some translation functions like pll__ and pll_register_string to handle strings from Customizer.

    Have you tried to contact with Polylang support? I think this is the best source. I’ll try to look through their documentation and find some solution for you.

    Kind regards

    Thread Starter bombayo

    (@bombayo)

    Thank you very much, I will be grateful for your help. Support polyling is only for pro. I would be shown once how to display the line for translation, and then I myself …

    Hi there,

    ?I apologize for the delay in response.

    In order to translate texts from Customizer you need to change some theme files.

    1. Open wp-content/themes/vega/functions.php file and add this line before the closing php tag ?>:

    pll_register_string('Front Page Banner Heading', vega_wp_get_option('vega_wp_frontpage_banner_heading'), true);

    2. Then open wp-content/themes/vega/parts/frontpage-banner.php file and replace this line:

    <h1 class="block-title wow zoomIn"><?php echo esc_html($vega_wp_frontpage_banner_heading) ?></h1>

    with this:

    <h1 class="block-title wow zoomIn"><?php echo pll__(esc_html($vega_wp_frontpage_banner_heading)) ?></h1>

    Then please go to Languges → String translations and you should see new string “Frontpage Banner Heading” which you can translate as you wish.

    Please note also that you will lose all modifications after next theme update so the best way to add these changes would be creating Child Theme and add these modifications there.

    Hope that helps.

    Kind regards

    • This reply was modified 7 years, 5 months ago by jarektheme.
    Thread Starter bombayo

    (@bombayo)

    Thanks for the game! Everything is working. Now knowing the principle, I can translate the rest. Thanks again!

    Thread Starter bombayo

    (@bombayo)

    Hello again. I understood the lines with your help. and how can I specify different pages for different language versions in the topic settings? Thank you

    Hi again,

    Could you please provide me some details about this issue, perhaps send me some screenshots or URL?
    Would you like to add different languages?

    Kind regards

    Thread Starter bombayo

    (@bombayo)

    Hello again. In “front page – icon column” i can choose only 1 page, and I need to switch the language of the page of the selected language.
    https://ibb.co/gT1vow
    https://ibb.co/k3md8w
    https://ibb.co/cnr0MG
    Is this in the pro version?
    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Multilanguage of the banner’ is closed to new replies.