Problems on Sidebar and Footer Translation with WPML

Posted in: Newspaper
Post count: 23

Hello Team,
I’ve Installed WPML on our website.
To set the footer and the sidebar, I followed your instructions as explained here: https://forum.tagdiv.com/topic/using-with-wpml/
So, I’ve set up a footer page for english version and a footer page for french version (default language)
In cloud template, I’ve also created a Single post page temlate for french version and a Single post page template for english version.
My problems
Footer
To set the footer page of english version, when on Newspaper, I chose “footer english” like this https://prnt.sc/oiewul, the same footer display in both french and english version.
Please help me to fix it. To do that the footer page swicht from english to french when we navigate on french or english version.

For Sidebar
As I told you, I’ve created an english version of for the sidebar in Cloud Template. I even have the ID number of that page. But as explain here https://forum.tagdiv.com/topic/using-with-wpml/ and here in String translation https://www.screencast.com/t/2tnXvxoQisMW, when I go at String Translation section in WPML on our website to put that ID page, I do not see where to integrate that ID Page. Because I can not found where ‘sidebar page’ is located. Here is what I see when I go to String Translation in WPML :https://prnt.sc/oif8hj.
I even tried to do the same with footer page but I did not found where the ‘footer page’ section is located in String Translation.
I’ve also tried to use another method to change the sidebar by using Newspaper Theme panel / Post Settings / Default post template. There, the both single page appears in back office. Like this : https://prnt.sc/oifg0r. When I chose ‘Single Cloud Template Anglais’ for the english version. It display on the both french and english version of the website.
Please I need a help! If you could have a look, it will be great!
Thanks in advance!

Post count: 23
Post count: 20688

Hi,

After setting the page in the initial language, now you must translate the ID of the page using the WPML string translation.

So for example I am creating a page to set as footer page, first in English
http://prntscr.com/ois9uf
Then I translate the page in French – http://prntscr.com/oisa1a
http://prntscr.com/oisaiq

Now using WPML these pages can be switched when the language is changed, but this must be set as mentioned in the topic from above. In my example I am setting the English page in the theme panel – http://prntscr.com/oisc44
Then I am adding the tds_footer_page string for translation in WPML
http://prntscr.com/oiscowhttp://prntscr.com/oiscujhttp://prntscr.com/oiscz9

Now it appears like so – http://prntscr.com/oisddi so if I want the French page to appear when the language is changed, I will add the ID of the page there
http://prntscr.com/oisdt1http://prntscr.com/oisg6n
Be sure to mark as complete there.

The result is like this. When on English the footer page will be the English footer page
http://prntscr.com/oisfoj
When on French the translated footer page will be displayed – http://prntscr.com/oisgmx

If you do it like this everything should work fine. For me it works correctly every time I test it. Please let me know if there still is a problem after trying this.

Thanks

Post count: 23

Hello Simion C,
Thanks for your clear explanations.
My problem is that in String Translation section in WPML I can not find this section admin_text – tds_footer_page https://prnt.sc/oisddi
Please could you indicate me how can I find this section.
In our BO, here is what i see when I search for tds_footer_page. Nothing. : https://prnt.sc/ojfwnz
I note that I’Ve already done this : https://prnt.sc/ojg4ss
On the contrary of what you said, I did not find that tds_footer_page in td_011. But I found it in td_remote_http as you can see in the screeshot: https://prnt.sc/ojg4ss

Those explications for footer page translation, are they the same procedures to translate Single Post Page template (Cloud template) ?
Thanks in advance!

Post count: 23

Hello Simion C,
Thanks for your clear explanations.
My problem is that in String Translation section in WPML I can not find this section admin_text – tds_footer_page https://prnt.sc/oisddi
Please, could you indicate me how can I find this section?
In our BO, here is what i see when I search for tds_footer_page. Nothing. : https://prnt.sc/ojfwnz
I note that I’Ve already done this : https://prnt.sc/ojg4ss
On the contrary of what you said, I did not find that tds_footer_page in td_011. But I found it in td_remote_http as you can see in the screeshot: https://prnt.sc/ojg4ss

Those explications for footer page translation, are they the same procedures to translate Single Post Page template (Cloud template) ?
Thanks in advance!

Post count: 20688

Hi,

It could be that WPML is not adding the string. When you select it and click apply is the saved message displayed? – http://prntscr.com/ojqyoxhttp://prntscr.com/ojqytu
There are cases when it doesn’t add the string, they recommend a max input vars of 10000
https://wpml.org/forums/topic/cant-add-string-for-translation-from-admin-strings/
I have it set like that and it works fine – http://prntscr.com/ojr01t

Also, before adding the string a page should be set in the theme panel footer page section, so there will be something to translate. So before trying to add the string, set the page for the main language – http://prntscr.com/ojr0n4

Once added, the string should appear like so – http://prntscr.com/ojr5dj
http://prntscr.com/ojr5hx

Thanks

Post count: 23

Hello Simion C,
We finnaly succeeded with footer translation with that procedure ! It is now Ok for footer. Thank you. But for the sidebar translation, there is still a problem. As I mentioned above, I’ve created an english version of for the sidebar in Cloud Template (Single page cloud template). In addition of Single Post Cloud Template French (default). I even have the ID number of that translated cloud template page.
I’ve also tried to use another method to change the sidebar by using Newspaper Theme panel / Post Settings / Default post template. There, the both single created pages appears in back office. Like this : https://prnt.sc/oifg0r. When I chose ‘Single Cloud Template Anglais’ for the english version. It display on the both french and english version of the website.
Please I need a help! If you could have a look, it will be great! How can I do that the english version of that single cloud template display just on the english version and the french version of that single cloud page template which has sidebar in french also display on the french version?
Thanks in advance!

Post count: 20688

Hi,

It should work like this, create/import cloud templates then apply them for each language. Don’t translate cloud templates, that may not work correctly.
So for example in English set one post template – https://prnt.sc/olgghw
And on French set a different post template – https://prnt.sc/olggy7
Each should use the templates that you set.

In those respective template you can add the elements you want, widget sidebars etc. The post templates will have to be applied manually for each post. Then the posts will use
the templates you create specially for the respective languages.

I should note that there could be some issues when using cloud templates with WPML. In some cases cloud template don’t work correctly with WPML, it is on our list for investigation at the moment.

Let me know if you have more questions.
Thanks

Post count: 23

Hello Simion C.
Thanks, it’s OK now.
But it will be nice if it is automatic like the default sidebar set in the newspaper theme!
Think about it the next update.
Thanks again!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.