Support » Plugin: WP Scripts & Styles Optimizer » problem with wmpl installed websites

  • Hi,

    I really liked your awesome plugin but when I try to use it with WPML installed websites, and filter some js/css (conditional) it applies it only default language, not on translated page.

    Any recommendation for this problem?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hendrik Lersch

    (@riddler84)

    Hello,

    WPML creates a new page for every language. If you set the filter for a specific page, you have to do it for all the translated pages too. But if you do, you must put every single page filter into it’s own condition group. That’s important, because otherwise the filters only trigger, when someone opens all pages at once, which can never happen.

    Maybe you could use a more generic filter, like post types or categories?

    Hope that helps.

    Hi again,

    I could not find how can i add each filter for translated pages actually, I can add filter for each page, but cant select translated pages (because only list native language, when I switched the language it shows true page value but not apply)

    Bests,

    Plugin Author Hendrik Lersch

    (@riddler84)

    Hi,

    i use native WordPress functions like wp_dropdown_pages to create the filter select fields. I believe WPML hooks into these functions and change the output to only the default language pages. And since the translations are all connected, WPML will dynamically change the post ID’s in frontend depending on the current locale.

    I will contact the devs of WPML and ask for a subscription, so i can make my plugin compatible. But this could take a while. I’ll keep you up to date in this thread.

    Best regards.

    Hello Hendrik,
    Mercedes from WPML here. I wanted to validate the request we received at our site. Please reply to my message and we will get ball rolling 🙂

    Thanks!

    Plugin Author Hendrik Lersch

    (@riddler84)

    Hello Mercedes,

    Yes, I confirm that I have made the request.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘problem with wmpl installed websites’ is closed to new replies.