- This topic has 5 replies, 2 voices, and was last updated 3 years, 8 months ago by
Elvin.
-
AuthorPosts
-
January 5, 2022 at 10:23 pm #2070744
Mohammed
Hi,
thanks for GP and GB.
I’m having few issues with the multi lingual side.
The stylings in the header are not being applied, the footer (a block element) is not being hooked apparently in the other language.
This was reported to me by the translators, so i don’t know the details, as i don’t use WPML.
Please see check the two language version in the private link.
January 5, 2022 at 11:12 pm #2070775Elvin
StaffCustomer SupportHi Mohammed,
WPML creates a “duplicate” for the translated page. This means the translated pages are technically, it’s own separate page.
You can actually see this when you inspect the page. The English page is technically page-id-2 and the Finnish page is page-id-2704.
That means, you’ll have to add these “duplicate” translated pages to the Block Element’s display rule so it gets properly hooked to them as well.
If the Finnish home page doesn’t appear on the dropdown for the display rule location, you may have to create a Block element specifically for Finnish translation as if I remember it right, WPML toggles the Block Element as well for indication of which language it appears on.
January 5, 2022 at 11:45 pm #2070788Mohammed
Hi Elvin,
Thanks for your response,
the location rule is set to “entire site”. I added “page” – “all pages” and it’s still not being hooked.
How about the first issue ” The stylings in the header are not being applied”
January 6, 2022 at 12:55 am #2070824Elvin
StaffCustomer SupportHow about the first issue ” The stylings in the header are not being applied”
That’s because the styling was menu ID specific rather than a common class between the menu items.
This particular CSS:
.menu-item-2141 {border-left:solid 1px #C9C9C9; border-right: solid 1px #C9C9C9} .menu-item-2142 {border-right: solid 1px #C9C9C9} .menu-item-2143 {border-right: solid 1px #C9C9C9} .menu-item-2144 {border-right: solid 1px #C9C9C9}
Should be simplified to this:
li.menu-item { border-left:solid 1px #C9C9C9; } li.menu-item:last-child { border-right: solid 1px #C9C9C9 }
Going back to the hooked elements:
You may have to try create a duplicate Block and toggle its language to Finnish and then set its display rule so it applies to the Finnish equivalent of the pages. I believe the Block elements have flag toggles and you may have to use this for the block elements like you do when you make a translation of a normal page.
January 6, 2022 at 1:11 am #2070829Mohammed
Ah yes, i see for the header styling issue. Thank you very much for the explanation.
For the hook issue, i just get now how it is done. You have to toggle the language and then set the block elements.
It was apparently not well set by the one’s who is working on the translation, setting the wrong hook.
Thank you very much, all issues are resolved now.
January 6, 2022 at 4:52 pm #2071810Elvin
StaffCustomer SupportNo problem. Glad you got it sorted. 😀
-
AuthorPosts
- You must be logged in to reply to this topic.