Skip Navigation

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 1 reply, has 2 voices.

Last updated by Nicolas V. 1 year, 4 months ago.

Assisted by: Nicolas V..

Author Posts
November 10, 2023 at 2:23 pm #14777599

thomasP-18

Tell us what you are trying to do?
You helped me on the hidden link site to resolve the problem.

Is there any documentation that you are following?

You send me the following PHP File to solve the problem:

LOGOLINK (plugins/quadmenu/templates/logo.php):

<?php if ($url):

$home = get_option('home');

if ( $link == $home ) {
$link = apply_filters( 'wpml_home_url', $home );
}

?>
">', esc_url($url), esc_attr(get_bloginfo('name'))); ?>
<?php endif; ?>

Is there a similar example that we can see?
On the Tachofresh site the code works. On the Wanko site not.

What is the link to your site?

hidden link

.htaccess
WANKO
!!Logistik_Soft!!

November 13, 2023 at 4:35 pm #14791041

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

Can you try to follow the example in our documentation: https://wpml.org/wpml-hook/wpml_home_url/

It should be something like:

<?php if ($url):

$link = apply_filters( 'wpml_home_url', get_option( 'home' ) );

?>

Please note that custom work to modify plugins or themes isn't covered by our support policies: https://wpml.org/purchase/support-policy/

I would invite you to contact the plugin authors and asked them to join our Go Global program: https://wpml.org/documentation/support/go-global-program/
Our developers will be able to help them achieve compatibility.

November 13, 2023 at 4:47 pm #14791091

thomasP-18

Hello Nicolas,

Thank you very much for your help.

The small change to the PHP script has helped.

The link on the logo now works as it should.

Regards Thomas