[Support request] Polylang and Footer content

Home Forums Support Polylang and Footer content

This topic contains 5 replies, has 3 voices, and was last updated by  Tom 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #470199


    I have a site with 2 languages.
    Would you know how can I change the footer credit (Edited via the customizer) for each language?
    I am using the Polylang plugin.



    Leo Customer Support

    Hi there,

    If you are using WPML then you can use the after footer content hook with this method:

    You will have to check with Polylang if they support the same thing 🙂



    Yes, polylang supports it too.
    I was wondering why doesn’t The customizer change per language and if it’s a wp, GP or polylang thing.
    And if there’s an option without the hook.



    Tom Lead Developer

    I believe WPML gives you an option to change the Customizer option per language, as we’ve included a compatibility file that looks for specific theme options in WPML. Not sure if Polylang has something like that?



    Hi Tom, didn’t see that in Polylang,
    As a previous user of WPML, my impression is that this plugin slows the site down so I have been trying out Polylang.
    Maybe it’s worth asking the Polylang author for a compatibility file like in WPML.

    Till that is solved I used the “Before Footer Content” to replace the credit line based in the language selected.

    add_filter( 'generate_copyright','tu_custom_copyright' );
    function tu_custom_copyright()  { ?>
    <?php if (get_locale() == 'en_US'): ?>
    ---English content---
    <?php endif; ?>
    <?php if (get_locale() == 'he_IL'): ?>
    ---Hebrew Content---
    <?php endif; }?>



    Tom Lead Developer

    Definitely nothing wrong with that method 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.