• Resolved SiteCare Team

    (@sitecare)


    Hello,

    We are using the dropdown widget look, and would like to continue to use the dropdown.

    In version 2.9.15 of the GTranslate plugin, when the Salient theme converts all select elements to Select2 components, the translation dropdown continues to work as expected: When you select a different language, the page is translated. However, on the latest version – version 3.0.4 – after the Salient theme has converted the translation dropdown to Select, it no longer works: When you change languages, nothing happens. We cannot find any errors in the browser console or in the server logs.

    We also cannot find any filters or actions within the GTranslate plugin that either allow us to add a special class name to the select element of the translation dropdown so that Select2 bypasses it or that allows us to enqueue the translation dropdown code after Select2 runs. We tried adding the special class name in the GTranslate settings but this only adds to the wrapper, which Select2 ignores.

    Hoping you can assist with resolving this error.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    You forgot to post your website address, so I can check the issue for you.

    Thanks! ??

    Thread Starter SiteCare Team

    (@sitecare)

    Sorry about that. This is currently being tested on a dev environment: https://hsnydev.wpengine.com/

    What would be the best way to share login credentials securely so you can access and view the errors?

    Thread Starter SiteCare Team

    (@sitecare)

    Hi, just following up on the above.

    Could you please let me know the best way this can be shared with you?

    Plugin Author edo888

    (@edo888)

    Hi,

    I see that you initialize select2 inside wp-content/themes/salient/js/build/init.js file. This is the selector with exclusions:

    t("select:not(.state_select):not(.country_select):not(.comment-form-rating #rating):not(#tribe-bar-form select):not(.woocommerce-currency-switcher):not(.nectar-custom-product-attr select)")

    You will need to add :not(.gt_selector) to the CSS selector.

    Thanks! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘GTranslate dropdown breaks on Salient theme – PHP 8.2’ is closed to new replies.