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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 11 months, 3 weeks ago.

Assisted by: Bobby.

Author Posts
March 5, 2024 at 5:17 pm #15375866

kurtK-7

I have two hard coded links in my template. How do I adjust the code so the link changes/updates from the default to the translated link when viewing these pages?

echo ''. __( 'View All Updates', 'lwsupply' ).'';

<p>"></p>

March 5, 2024 at 6:02 pm #15376011

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi,

Please review the following documentation:
https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/

and try the example

"If you have a link that is separated from the surrounding text, you should do something like this:"

<a href="http://wpml.org/" ><?php esc_html_e( 'Translated with WPML', 'my-domain' ); ?></a>

Also, I'd recommend adding the whole URL

Let me know your results, please.

The topic ‘[Closed] Hard Coded Link’ is closed to new replies.