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.

Tagged: 

This topic contains 1 replies, has 0 voices.

Last updated by Noman 1 week ago.

Assisted by: Noman.

Author Posts
February 25, 2026 at 5:46 am

ahmedH-37

i want to translate the anchor in this page : hidden link

original language of the page is english. we need the anchor to be ''durabilite'' but we don't see it in the advanced editor neither in the strings

February 26, 2026 at 10:23 am #17855799

Noman

I’m able to translate the anchor value by following the below steps:

1. Added the below XML:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="greenshift-blocks/row" translate="1" label="Greenshift Row Anchor">
      <key name="customAnchor" />
      <xpath>//div[contains(@class,'wp-block-greenshift-blocks-row')]/div[@id]/@id</xpath>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

2. Made a small change in the default language page title to reload the translation.

3. Opened the translated page in WPML Advanced Translation Editor and the anchor value was available for translation.

4. Completed the translation and it shows the correct ID in the page source.

I tested here: hidden link

Could you please check and confirm?

Thank you

anchor link translaiton.jpg
FR page.jpg
EN page.jpg