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

Last updated by דייזי פולקובסקי 1 week, 2 days ago.

Assigned support staff: Noman.

Author Posts
September 22, 2019 at 8:12 pm #4619375

דייזי פולקובסקי

I am trying to: set different logo for each language using oceanwp theme with wpml

Link to a page where the issue can be seen: hidden link

I expected to see: different logo for hebrew language and english language

Instead, I got: same logo for both language.

** i tried to find logo url in string translation in order to translate it, but i coudnt. i went to "translate text in admin screen" and under "theme-oceanwp-mode" i cooudnt find "custom-logo"either

September 23, 2019 at 4:28 am #4620165

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. To take a closer look on this issue, please provide temporary access (WP-Admin and FTP Login info) to your site, so that I can look into your setup and debug the issue.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

Thank you

October 6, 2019 at 8:13 am #4701849

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

For right side logo, I have searched the logo ID from WPML >> String Translation and added it’s translation as you can see in the attached screenshot.

For left side logo, I have wrapped the logo URL in gettext function to made it translation ready. To do that I have replaced below code:

<p id="volkan-logo"> <img src="<em><u>hidden link</u></em>" alt="volkan logo" height="110" width="110"> </p>

with:

<p id="volkan-logo"> <img src="<?php echo __('<em><u>hidden link</u></em>','themedomain'); ?>" alt="volkan logo" height="110" width="110"> </p>

In logo.php file of your child theme.

And now logo showing correctly on frontend of your site. Could you please check and confirm?

Thank you

October 6, 2019 at 5:02 pm #4703041

דייזי פולקובסקי

My issue is resolved now. Thank you!