• Resolved malesandro

    (@malesandro)


    Hello everyone,
    I’m using Polylang to create a two languages website.
    A couple of days ago, I installed a plugin that allows me to click on an image, and when it opens itself on a new popup window, zoom an pan it (it is called Wp-ImageZoom, and it’s the only one I have found that does exactly what I need).
    However, this only works if I have polylang DISABLED. When I enable it, instead of opening the image, the popup shows my homepage.
    This happens in both languages.

    I’m using Polylang v1.4.1
    I’m using Post name for Permalink settings.
    The language is set from content.
    I have Keep /language/ in pretty permalinks (though it doesn’t appear).
    I have tried different combinations of Polyland settings, and Permalink settings, and none of them made the two plugins work together.
    I am using a static frontpage, translated in both languages.

    When Polylang is DISABLED, then this other plugin works, and the URL on the popup is this one: https://192.168.56.111/website/wp-content/plugins/wp-imagezoom/zoom.php?id=F2qox

    When Polylang is ENABLED, the URL on the popup is this one: https://192.168.56.111/website/?page_id=164&id=F2qox

    I have been searching into Polylangs code, what could be interfering with this other plugin. My best bet, is that it must be something related to the document root, or simil, but couldn’t find the right answer yet.

    Is there anyone that has had an incident similar to this, and can help me out?

    Thanks a lot,
    Mariano

    https://www.ads-software.com/plugins/polylang/

Viewing 1 replies (of 1 total)
  • Thread Starter malesandro

    (@malesandro)

    I have solved this problem.
    I read this thread, and then ended up using this:

    // prevents home redirection
    add_filter('pll_redirect_home', 'no_home_redirection');
    function no_home_redirection($redirect) {
        return false;
    }

    Solved now.
    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Polylang affecting Wp-ImageZoom behaviour’ is closed to new replies.