• Resolved joanlaura404

    (@joanlaura404)


    I have Google Language Translator (v 6.0.15) installed on a client’s WordPress site (v 6.0.1) and I’ve noticed there appears to be a plugin conflict with Ninja Tables (v 4.2.3). On pages that have tables in them, the translator select box is duplicated once for each table on the page. For a page had 6 tables on it, there were then 7 google language translator dropdowns. I’m not sure of the cause of the conflict, and I have reported this issue to Ninja Tables as well.

    In the meantime, I have used CSS to hide the additional language select boxes.

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

    (@edo888)

    Hi,

    Without a link to replicate the issue I will not be able to comment.

    Thanks! ??

    Thread Starter joanlaura404

    (@joanlaura404)

    I have created a dev site to show the issue.

    On this page, https://wordpress-528584-2869543.cloudwaysapps.com/locate-expand/business-climate/employers-occupations/ my browser shows 4 language dropdown boxes.

    On this page, https://wordpress-528584-2869543.cloudwaysapps.com/locate-expand/business-climate/demographics/ I’m seeing 7 language dropdown boxes.

    It does seem to be adding one additional dropdown box for each ninja table on the page.

    Plugin Author edo888

    (@edo888)

    Hi,

    I have checked and see the following inside wp-content/plugins/ninja-tables/assets/js/ninja-tables-footable.3.1.0.js file:

    .on("postdraw.ft.table", (function(n, u) {
                        window.google && window.google.translate && function() {
                            for (var t = document.getElementsByTagName("script"), e = "", r = 0; r < t.length && (!t[r].src || !(e = new URL(t[r].src).searchParams.get("cb"))); r++)
                                ;
                            var n = "//translate.google.com/translate_a/element.js?cb=".concat(e);
                            jQuery.getScript(n)
                        }();
                        try {
                            t.trigger("ninja-tables-apply-conditional-formatting", [e, r]),
                            e.find("td:contains('#colspan#')").length && e.find("td:contains('#colspan#')").remove()
                        } catch (t) {
                            console.warn(t)
                        }
                    }
                    ))

    This code is responsible for loading more Google Translate selectors. You can either disable the mentioned code or better if you consult Ninja Tables plugin developer.

    Thanks! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict with Ninja Tables’ is closed to new replies.