Translating the mobile theme with WPML

Posted in: Newspaper
Post count: 181

Hello

How do I translate the mobile theme’s strings? I did translate it via wpml and theme panel’s translation section but it does not update? Please see the attached.

https://pasteboard.co/IpLYz1S.jpg

Besides, I find no way to fit the main menu center, it’s siding left, if I want to fit it in the center, meni items pushes down. Is there a way to make it responsive?

https://pasteboard.co/IpLZ0mO.png

Post count: 181

One more thing

When we enable amp for home pages, the language switcher on the mobile version disables itself. But I can see it is there in the wpml language options. Is there any specific reason for that?

Post count: 20688

Hi,

I tried to translate the mobile theme strings, it’s not working, I can’t say how it should be done. I will make some more tests and get back to you as soon as possible.

Regarding the menu, it depends on the available space. If there are many menu items and there isn’t enough space, they will drop on a second row. In this case you could stretch the header space to a larger width – https://prnt.sc/olh9jp

I have tested the language switcher on my end, I have set it to appear for the menu used by the mobile theme – https://prnt.sc/olhbi5https://prnt.sc/olhboo
It appears at the end of the menu on AMP – https://prnt.sc/olhc18 it shouldn’t disappear. Does it appear in the mobile theme without AMP? Please let me know.

Thanks

Post count: 181

Hi

Waiting for your tests.

Yes, when I stretch the header, menu items moving to the left, so there’s an annoying gap on the right side.

The language switcher is ok with the mobile theme. But When I enable amp for the home pages, the switcher disappears. Also the logo size gets smaller when amp enabled. Please see the sreenshots..

When you are on the amp version and click the logo to go to home page, it goes to mobile version, not amp.

amp logo: https://pasteboard.co/IqdLRBp.png
amp menu: https://pasteboard.co/IqdM0eH.png

mobile logo: https://pasteboard.co/IqdManI.png
mobile menu: https://pasteboard.co/IqdMiyY.png

UPDATE: AMP Version only shows switcher when we enable LANGUAGE NAME from the switcher options, it does not show the swithcer when selected FLAGS to show them.

  • This reply was modified 7 years by fatih-2.
Post count: 20688

Navigating away from an AMP page or post will display the mobile theme (non-AMP). So regardless of being on the AMP version of a page, beginning to browse the website there will no AMP anymore.

The logo looks quite small for some reason, looks like it has a limited size. Try to enter this code in the mobile theme CSS section

.td-main-menu-logo amp-img img {
min-height: 100%;
}

It may take a while before changes will be seen in Google AMP. You could try this
https://developers.google.com/amp/cache/update-cache

Regarding the flag switcher it is the same for me. It does not appear in AMP. From what I can find in a topic they mentioned that for AMP it would be better to use this option
https://prnt.sc/oltxu2https://prnt.sc/oltxwk
https://wpml.org/forums/topic/language-flags-not-showing-on-amp-pages/
Or consider using the language names instead of flags.

Post count: 181

Hi Simion

Do you have any update on how to translate strings for the mobile theme?

Post count: 20688

Hi,

I have already added this on our list, a solution will be found for it. Currently it seems that translating strings from the mobile theme is not possible unfortunately. Sorry for the inconvenience.

Thanks

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