-
AuthorPosts
-
August 20, 2021 at 1:43 pm #1317633
Hallo,
ich habe eine zweisprachige Website und nutze hierfür Polylang. Ich habe in der Copyright Info auch das Impressum und Datenschutzerklärung drin. Aktuell sind daher leider beide auch für die englische Website auf deutsch bzw. eben auf die deutschen Seiten verlinkt. Gibt es eine Möglichkeit für die englische Website ein eigenes Copyright mit englischem Datenschutz (inkl. Link zur Seite) und Impressum zu hinterlegen?
Danke im Voraus für euere Hilfe.LG
EvelynAugust 23, 2021 at 10:52 am #1317946Hey Createve_Solutions,
Thank you for the inquiry.
Did you set a different menu for each language? According to the documentation, you have to set a different set of menu for each language and assign it to its respective theme location. For more info, please check the following link.
// https://polylang.pro/doc/create-menus/
Best regards,
IsmaelAugust 23, 2021 at 2:05 pm #1317969This reply has been marked as private.August 25, 2021 at 6:21 am #1318220Hi,
Could you please explain to me exactly how I can best copy the currently unlinked English pages via shortcode (w
We are not really sure what it means and if it is possible. You might have to translate the pages again to the other language using the default plugin translation process or steps. Please check the following documentation for more info.
// https://polylang.pro/doc/translating-pages-posts-categories-and-tags/
Best regards,
IsmaelAugust 26, 2021 at 8:59 am #1318411Hello,
so that I don’t have to build all the english sites again, I want to have the shortcode of the english sites to put the shortcode in the new, connected english site. But I don’t know how to get the shortcode of a side…
So what I mean is to copy a side with shortcode ;)
Thanks for answering.
EvelynAugust 27, 2021 at 8:31 am #1318589Hi,
That is not possible without significant modification in the theme or without additional code, unfortunately. You may need to look for a plugin but I doubt there is one with that functionality. You may have to hire a freelance developer to implement that kind of feature.
Thank you for your understanding.
Best regards,
IsmaelAugust 27, 2021 at 10:33 am #1318612for your copyright input field – you can activate the shortcodes usage of polylang by this in your child-theme functions.php:
function polylang_shortcode($atts, $content = null){ if (empty($content)) return ''; extract( shortcode_atts( array('lang' => ''), $atts ) ); if (empty($lang)) return "<h3>You must specify 'lang' using shortcode: polylang</h3>"; return ($lang == pll_current_language()) ? $content : ''; } add_shortcode('polylang', 'polylang_shortcode');
after doing that you can insert to content shortcodes like this:
[polylang lang="en"] here is your english phrase [/polylang][polylang lang="de"] und hier kommt die deutsche Entsprechung hinein [/polylang]
and this will work in footer copyright input field aswell.
August 27, 2021 at 11:43 am #1318630Hi,
@Guenni007: Thanks for helping. Based on Google’s translation, I think he has problems with the page translations and wanted shortcodes to automatically be added to other pages. Not really sure. Hopefully, your solution above works.Best regards,
IsmaelAugust 27, 2021 at 12:40 pm #1318640i understand it in this way:
I have a bilingual website and use Polylang for it. I have in the copyright info also the imprint (Link) and privacy policy (link) inside. Currently, both are therefore (both links are there in english and german – so 4 Links) unfortunately also for the English website in German or just linked to the German pages. Is there a way to add a separate copyright with english privacy policy (incl. link to the page) and imprint for the english website?so this will solve the issue:
[polylang lang="en"]<a href="https://domain.com/en/imprint">Imprint</a> - <a href="https://domain.com/en/privacy">Privacy</a>[/polylang][polylang lang="de"]<a href="https://domain.com/impressum">Impressum</a> - <a href="https://domain.com/datenschutz">Datenschutz</a>[/polylang]
August 30, 2021 at 4:05 am #1318878Hi,
I see. Thank you for the clarification. Using the shortcode should help.
Best regards,
IsmaelAugust 30, 2021 at 7:58 am #1318920Hi,
thanks for helping :) – I will try as soon as possible and hope it will work.
Best regards,
EvelynSeptember 1, 2021 at 6:55 am #1319289 -
AuthorPosts
- You must be logged in to reply to this topic.