Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    This is caused by some JavaScript code for Google Analytics that you have placed at the top of your page:

    var trackOutboundLink = function(url) {
       ga('send', 'event', 'outbound', 'click', url, 0);
         function () {
         document.location = url;
         }
       });
    }

    That function contains a syntax error which stops the execution of all remaining JS on the page.

    Regards,
    Tobias

    Thread Starter moliver27

    (@moliver27)

    thank you so much for the response Tobias. I’ll take a look at the code and straighten everything out. Thanks again for your help.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    Thread Starter moliver27

    (@moliver27)

    Well, I’m still having some issues. I removed the Google Analytics code from my header.php and still don’t have the dropdown menus. I can’t seem to find the Google Analytics code anywhere else through out the site so I’m hoping that I perhaps missed it somewhere. However, when I go to the website and right-click and select “view source”, the Google Analytics code is gone.

    Is there another string of code that could be affecting this or perhaps the Google Analytics code is located somewhere else other than header.php? Thanks for all of your help Tobias.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi

    for me, that JavaScript code from above is still in the page, when I use “View Source”. That’s what you’ll have to find and fix or remove.

    Regards,
    Tobias

    Thread Starter moliver27

    (@moliver27)

    Thanks for your response Tobias. That string of code has been in there for over a year and hasn’t caused any problems up until last week. I removed the code last week but still couldn’t get the dropdowns back so I put the code back in to maintain our analytics tracking.

    We’re currently working to figure out why the string of analytics code is all of a sudden conflicting with the plug-in.

    Thanks Tobias!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    it’s not that JS code causing a conflict with TablePress, it’s that JS code having some sort of syntax error.
    That simply stops the execution of all other JS in the page.

    To me, it appears that the line

    function () {

    is missing something at the beginning. I suggest to check this with the original source of this JS code.

    Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘dropdowns have disappeared’ is closed to new replies.