Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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
    Evelyn

    #1317946

    Hey 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,
    Ismael

    #1317969
    This reply has been marked as private.
    #1318220

    Hi,

    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,
    Ismael

    #1318411

    Hello,
    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.
    Evelyn

    #1318589

    Hi,

    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,
    Ismael

    #1318612

    for 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.

    #1318630

    Hi,


    @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,
    Ismael

    #1318640

    i 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]
    
    #1318878

    Hi,

    I see. Thank you for the clarification. Using the shortcode should help.

    Best regards,
    Ismael

    #1318920

    Hi,
    thanks for helping :) – I will try as soon as possible and hope it will work.
    Best regards,
    Evelyn

    #1319289

    Hi Evelyn,

    Thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.