Archived topic
Disable title not working in block element with WPML
11 replies · Started by Gabriel on February 23, 2022
I have created a hero block element with Disable title enabled. Because I have some static content in the header I created a translation. The translation however still shows the title below the block element. The translated element does not have the Disable title setting visible in element the editor.
I also noticed that while the original is of type "Block - Page Hero" the translation is just "Block".
Hi Gabriel,
Can you go to the translated page editor, try disable the default content title using the layout meta box?
https://docs.generatepress.com/article/layout-metabox-overview/
That works but shouldn't be necessary. Is Page Hero elements becoming regular Block elements after WPML translation something that GeneratePress can fix?
I should add that disabling title via block element works when it is not translated, i.e. using the same element for all languages. I do this for headers that only have dynamic content.
Is Page Hero elements becoming regular Block elements after WPML translation something that GeneratePress can fix
Not sure how that could happen as we don't know how WPML duplicate and translate the elements.
Is there the option for the block element to choose page hero?
Is there the option for the block element to choose page hero?
Yes there is and it works. Strange that the setting is not copied over when translating. I still had to disable Content title on the translates element after changing it to Page Hero.
Hi there,
did that resolve the issue ?
And just to confirm - when you copied the element over for translation. The Element Type changed to the default value ? I assume Hook ?
Yes, I could work around the issue by changing type manually.
The Element Type changed to the default value ? I assume Hook ?
Not sure but in the Type column on the Elements page it said just "Block" one the translation and "Block - Page Hero" on the original.
Glad it works, though some manual work is required.
It seems the problem is the plugin doesn't copy the element type during the duplication.
Don't think we can do anything about it Unfortuanly.
OK. I will ask if WPML can do anything on their end.
Keep us updated :)