 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
|
 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
|