Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #997572

    Hi there!

    I’m using the Enfold theme and the Weglot plugin to translate my English site to Spanish. I have recently added Privacy and Cookie Policies generated by ‘Iubenda’ as text widgets in Column 4 of my Footer, and have headed them ‘Privacy Policy – English’, ‘Política de Privacidad – Español’, ‘Cookie Policy – English’ and ‘Política de Cookies – Español’. They all work well, but this looks quite ugly because both the English and Spanish versions appear on both the English and Spanish websites.

    My question is this: Is there any way to link these 4 policies so that the English Privacy and Cookie policies only appear on the English page and the Spanish versions only appear on the Spanish page? Bye the way, I’m no good at coding, so, if code is involved, it would have to be idiot-proof! :-)

    Also, if I add you as a temporary Admin. user on my site, please could you tell me which e-mail address and name I should add in order to create a new temp. admin.?

    Many thanks,

    Frances

    #997613

    Hi Frances,

    1- You can try using this plugin – https://wordpress.org/plugins/widget-logic/ and choose to display widgets using conditional tags

    2- You can use (Email address hidden if logged out) but please attach logins in your thread so any available moderator can help :)

    Best regards,
    Yigit

    #997678

    Hi Yigit!

    Thank you for your response. I’ve installed the Widget Logic plugin, but the problem is that individual pages, for example ‘Contact’, have the same page ID numbers in English and Spanish, so I can’t specifically select the ‘Privacy Policy – English’ widget to appear only on the English pages. I’m not sure if this Widget Logic plugin is really useful here, but at least I tried :-)

    So I’d be very grateful if you could take a look for me, and see if you can help me. I’ve created a Temporary Admin. User account, which will expire in 2 days. The details are given in the ‘Private Content’ box below. Obviously, if you need more time, I can extend this time period.

    Many thanks in advance,

    Frances

    #998304

    Hi,

    I studied the Weglot documentation and you can use the weglot_get_current_language() function to get the current selected language ( https://developers.weglot.com/integration-guides/wordpress ). 

    You can also use it with widget logic, i.e. I used this conditional now:

    
    'en' == weglot_get_current_language()
    

    and

    
    'es' == weglot_get_current_language()
    

    Best regards,
    Dude

    #998375

    Hi Dude,
    Thank you for your reply. However, the link you sent me is for developers and gives lots of coding options. But, as I said in my initial message, I am useless at code! So in all honesty, your response doesn’t help me very much.

    I wrote the Weglot about this problem too, and they said the following:
    “It’s possible if you can add a specific HTML class or ID (like privacy_English, privacy_Spanish, cookie_English, cookie_Spanish) to the block displaying the text and the URL.”.
    When I asked them to help me with this, they said it is against their users’ policy to add code to their users’ websites.

    However, I can now see that there is now some code in the box marked ‘Widget Logic’ which seems to have resolved this problem. I have no idea whether this happened after I installed ‘Widget Logic’ plugin, or whether you at Kriesi Support have added some code for me. For example, in the Spanish site, the code in the Widget Logic box under the Privacy and Cookie Policies now reads: ‘en’ == weglot_get_current_language(). However this has happened, I’m happy that it works now as I want it to work.

    Many thanks,

    Frances

    #998387

    Hi,

    I added it for you ;)

    Best regards,
    Dude

    #998391

    Hi Dude!

    Thank you so much! I should have re-read before posting! I guess I just saw the code and kind of freaked! I didn’t read “i.e. I used this conditional now:”. I’m sorry!

    I’m really happy about your support and the fact that you sorted out my problem.

    Many, many thanks!

    Frances

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to link Footer information in different languages to a specific language pag’ is closed to new replies.