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 25 replies, has 2 voices.

Last updated by Shekhar Bhandari 1 year ago.

Assigned support staff: Shekhar Bhandari.

Author Posts
September 6, 2018 at 1:53 pm #2710980

omriR

I am trying to: translate the "top bar" section in ocean wp (made with elementor)
i crate a template in English with a short code with need to translate in 5 different lang.
[elementor-template id="35519"]

the thing is that in ocean library is not possibull to translate in regular way.
so i have to use strings to do it.

you can also try to translate :my template > library > Top bar
then select in the customiser > top bar > top bar template

the string i fund and translate but nothing happened.

I expected to see: bts, title, translate in the desire lang

Instead, I got: nothing

i'v been try all of your method in your blog
clean cache
ect..

delete the strings and sync them again
sync the plugins..

i need to see login btn in different lang and the title "Europe’s Favorite Broker
" in different lang

September 7, 2018 at 3:29 am #2713095

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for contacting WPML support. I'd be happy to assist you further on this issue.

Could you please use the solution provided here and let me know if this helps?
https://wpml.org/forums/topic/select-translated-elementor-templates-in-theme-options/

The solution provided is for footer elements, you will need to modify the solution a bit for header elements.

Let me know if this helps, If you are unable to find a solution please provide login details so I can check this setting and provide you a solution. I have enabled the private reply for you.

Thanks

September 7, 2018 at 7:25 am #2713417

omriR

i gave you the user ans pass in the first mail

September 7, 2018 at 7:28 am #2713454

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The login details seem to be missing, could you please check it? You can edit your previous private reply if you want me to send the details.

Look forward to your reply.

Thanks

September 7, 2018 at 12:05 pm #2714427

omriR

how can i edit the replay?

September 7, 2018 at 12:08 pm #2714438

omriR

or haw can i send you the user and pass? in privet?

September 10, 2018 at 4:31 am #2718715

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I have enabled the private reply for you again. You will find the needed fields for this below the comment area when you log in to leave your next reply. hidden link

This info is private, and available to you and supporters only. Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Look forward to your reply.

Thanks

September 10, 2018 at 3:29 pm #2720540

omriR

please refer to my template > my library > top bar 27240 string

September 11, 2018 at 10:12 am #2723272

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Please follow the below steps to fix the issue:

1) Copy the following code in WPML-> Settings -> Custom XML configuration

<wpml-config> 
<wpml-config>
    <admin-texts>
        <key name="theme_mods_oceanwp-child">
            <key name="ocean_top_bar_template"/></key>
    </admin-texts>
</wpml-config>

2) Once you place the code there, go to WPML->Settings -> Multilingual content setup and refresh the page.

To find out more, https://wpml.org/documentation/support/language-configuration-files/

3) Now go to Elementor->My Templates and translate the template into the secondary languages properly.

4) Now Open the same templates you have selected in Customize->Top Bar -> Content -> Select Template
- While opening the template, make sure to check the URL link, it will be like below:

post.php?post=35585&action=edit&lang=en

You will need to understand here that the post ID is 35585
- On the same page using the wp-admin language switcher hover over the secondary languages you will see the same URL in the bottom left corner of the browser, note that ID, that's the translated ID.

5) Now go to string translation and translate the strings registered under "[theme_mods_oceanwp-child]ocean_top_bar_template " name
- You will notice and Id being shown, on translation make sure to enter the translated ID.

Let me know if this helps.

Thanks

September 11, 2018 at 11:01 am #2723410

omriR

tnx its worked

September 11, 2018 at 11:49 am #2723623

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi there,

Glad to hear that it now works.

Thanks

September 11, 2018 at 1:08 pm #2723800

omriR

one more thing about global widget that appears in different lang. how to translate properly? for example the footer template in elementor appears the "webtrader " in german footer not appears in the wibsite for some reason
we are straggle with global btn in the wpml.

look at the attachment picture is empty but if you try to edit the german footer you will see at the bottom the webtrider global widget btn appears but not in the site.
tnx

also you have any idea why the wp admin panel above the top bar dont appears?

September 12, 2018 at 11:32 am #2727289

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

As the original issue is resolved may I kindly ask you please to open a new ticket for your additional question?

This will help other users with similar problems to find solutions when searching the forum.

Also, could you please elaborate the issue further, providing the screenshot of both languages results.

Also, it seems the provided username can't view the widget you mentioned in the backend so could you please provide the user access to view the widget, before opening a new ticket.

Thanks

September 18, 2018 at 11:28 am #2744824

omriR

hi again
i want to do the same we do to the footer template but how can i use that xml script to do it
<wpml-config>
<admin-texts>
<key name="theme_mods_oceanwp-child">
<key name="ocean_top_bar_template"/></key>
</admin-texts>
</wpml-config>

tnx

September 19, 2018 at 2:02 pm #2748994

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

You can use the following code:

<wpml-config>
	<admin-texts>
	<key name="theme_mods_oceanwp-child">
		<key name="ocean_top_bar_template"/>
		<key name="ocean_footer_widgets_template"/>
	</key>
	</admin-texts>
</wpml-config>

Let me know if this helps.

Thanks