Skip to content Skip to sidebar

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 Dražen 11 months ago.

Author Posts
August 19, 2024 at 1:26 pm #16083859

royE-4

Background of the issue:
We are developing a news-based website and want to be transparent with our audience. We aim to display a notice above posts that have been auto-translated, indicating the original language (English) and that the content was auto-translated.

Symptoms:
No specific issue or error message mentioned.

Questions:
Is there any way to incorporate a notice above auto-translated posts without manually adding it to each post?

August 20, 2024 at 6:54 am #16085762

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

There is no such option from WPML out of box, but you can add something like this via PHP or JS code, and just hook it before your post/page content.

For example, you can use the_title hook:
- https://developer.wordpress.org/reference/hooks/the_title/

Please note you will need to adjust the code for your theme and etc, if you need help we advise hiring a developer or using WPML Contractors: https://wpml.org/contractors/

Hope this helps.

Regards,
Drazen

The topic ‘[Closed] Adding a notice above posts auto translated mentioning the original language and the fact it was aut…’ is closed to new replies.