Tagged: x
-
AuthorPosts
-
May 5, 2016 at 12:35 pm #917011
I have a 2-language site so I can’t just put a MailChimp widget into the sidebar because I want English readers to subscribe for English newsletter and Russian readers to subscribe for Russian newsletter.
My site is here:
So what I can do with WPML is, I can use their multilingual text widget to put the text (code) there and then use it to translate the code into second language.
So my question is, how can I put the shortcode or source code into text widget so that it would show a widget like this:
I mean, with a headline and then a subscription form I set up via the MailChimp plugin (I have two forms).
Thanks.
—
AlexMay 5, 2016 at 9:42 pm #978061Hi there,
Thanks for posting in.
Add custom sidebar for each page, and each sidebar contains two different widgets that represent each language. Hence, you will be using different forms for instance of sidebar and widgets.
You can also try Widget logic plugin where you can add condition when to display a specific widget. Example, you have two Mailchimp form, and through condition that matches the language, then just match and display the applicable one.
Thanks!
May 6, 2016 at 6:57 am #978478Hello,
Thank you, I will try. Though, as I understand, I will have to manually select a sidebar for my Russian posts and pages every time I create one?
I have another question concerning MailChimp and translations. I created English form, then added translation for Russian and changed something there. Then I put Russian form on my Russian About page – and though I can see my Russian form in the Cornerstone panel, there’s English form shown on the page:
Yes, the text of the page is now in English because I didn’t have time to translate it in English. So don’t let it confuse you.
But the difference in forms is in example email: for English it is john.smith@example.com and for Russian it is antaflom@gmail.com.
So can you check this one for me and help me figure out what’s the problem?
Thanks!
—
AlexMay 6, 2016 at 7:15 am #978505Also, I checked the widgets area and I think – if the abovementioned issue was fixed – the WPML translation would work.
When I open Widgets in English, I see the English form in the selector:
When I open Widgets in Russian, I see the translation for that form that should be visible in Russian:
So in theory, in back-end, everything works fine. But in the front-end, it doesn’t work.
May 6, 2016 at 7:25 am #978516Oh, no, it doesn’t work like this. I just changed the names of the widgets on Russian page in Widget and it changed on all English pages too. 🙁
Well, I created the Russian sidebar and added the widgets with Russian names:
I chose to show this sidebar in all Categories:
But when I open my Russian pages, nonetheless I see the English sidebar:
http://playingwriter.com/ru/zvezdnye-vojny-probuzhdenie-sily-kak-sozdavat-miry/
http://playingwriter.com/ru/kniga-dzhunglej-6-ziyayushhih-treshhin/
I’m so confused…
May 6, 2016 at 11:20 am #978772Hi Alex
Can you please provide your WP-Admin credentials so we can have a better look?
Do not forget to mark the reply as private.
Thanks
Joao
May 6, 2016 at 11:22 am #978774This reply has been marked as private.May 6, 2016 at 8:01 pm #979613Hi there,
Yes, this kind of setup is too confusing. Hence, please do the second option, by using the widget logic plugin.
I went ahead and installed it, then added the widgets.
You’ll notice that I added two widgets of email form on the same sidebar. But if you’ll check the settings, there is a condition when each widget should be displayed.
Thanks!
May 7, 2016 at 7:20 am #980080Hello again,
Thank you for setting Widget Logic up. Yes, it works because I can see the different names of the widget depending on the language selected. However, the subscription form is still the same in both languages, and I think it’s the problem with how MailChimp plugin is managing WPML, or vice versa.
To show you what I mean, here’s the screenshot of the form on English page:
And here’s one on the Russian page:
The pages to see it for yourself are:
http://playingwriter.com/scrivener-for-ios-is-going-beta/
http://playingwriter.com/ru/scrivener-for-ios-otpravlyaetsya-v-beta/
You can see the headlines are different, but the placeholder email in the form is the same, while in the Russian form there’s a different placeholder.
So do you have any ideas on how it can be fixed?
Thanks.
—
AlexMay 7, 2016 at 7:29 pm #980453Hi Alex,
Please note that everything on WordPress is not automatically translated. You will have to either manually translate them using language files, or manually create static translation strings.
For the widget, as I recommended before, you will have to create two FORMS. And each one represents the language.
Please check the attached file.
Thanks!
May 10, 2016 at 1:00 pm #984504Hello again,
Yes, I understand that WPML doesn’t translate automatically. I’ll try to be more specific to show you what I have a problem with.
1. I created MailChimp forms for English
and Russian
They are similar, but they have different placeholder emails so we can distinct them clearly.
2. On Widgets screen, I added widgets with conditions as you explained me.
For English, the page looks like this:
You can notice the screenshot is similar to what you send me. And you clearly thought that it was my mistake that I forgot to choose Russian form for the Russian (bottom) widget, right?
Nope. See the Russian version of the page:
And that is the problem I have: when you’re working with English version, there’s only English version forms available. So you can set up the form for English widget. Then you switch to Russian page and you see only Russian forms available. So you can set up the form in the Russian widget.
But when you actually visit a site, you see there’s no difference and the form in both languages is the same, being English form. I recorded a short video to show this:
So it’s some kind of bug here, I suppose. I hope you understand what I mean now. You can see this for yourself on my site, having credentials and all.
Thanks.
—
AlexMay 11, 2016 at 2:21 pm #986407Hi Alex,
From screenshot where you can select languages on admin bar, you can actually select All languages. I went ahead and set the widget for you.
You can check this now http://playingwriter.com/ru/blog/
Thanks.
May 11, 2016 at 2:35 pm #986424Hello,
Thank you! It works, at last! You’re genius! 🙂
Another issue was adding the subscription form to the already published page. I managed to work it out. You see, I tried to edit the form block and choose the Russian form in the forms’ list. So it went fine, but on the front-end it showed the English form.
And now I deleted the form block and then added a new one – and it works perfectly!
I think maybe you should add a little page explaining this and other possible issues with WPML to your KB. It would be a tremendous help for us users and would save you time in future.
Thanks for helping out and have a great evening! (Well, it’s night in my town.)
—
AlexMay 11, 2016 at 2:53 pm #986448You’re welcome! Have a wonderful day, you too! 🙂
-
AuthorPosts