[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 6 months ago.

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

    Dan

    Hi,
    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.

    Thanks
    Dan

    #470317

    Leo Customer Support

    Hi there,

    If you are using WPML then you can use the after footer content hook with this method:
    http://demo.generatepress.com/hook-locations/

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

    #470327

    Dan

    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.

    Thanks
    Dan

    #470376

    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?

    #471533

    Dan

    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.

    <?php
    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; }?>
    

    Thanks,
    Dan

    #471889

    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.