• Resolved doc4

    (@doc4)


    I have scoured the internet for a solution to why the jquery isn’t working on these tables. I’ve tried multiple options but am not able to come up with a solution. Any help would be greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Are you sure that the “Use DataTables” checkbox is checked for this table? Also, do you still see the table Shortcode on the “Edit” screen of this page? (There are themes that replace it with the final HTML code, if a feature like frontend editing is used.)

    Regards,
    Tobias

    Thread Starter doc4

    (@doc4)

    Ah, yes. I turned on the ‘Use DataTables’ forgot I turned it off. There is a CDN on this so it takes a bit to recache the site. Here are some images and a video of me trying to use this in the meantime.

    https://drive.google.com/open?id=1m5i-Gy-GYm-KBgzx9R_3iCcrsKZxYvK6

    Thread Starter doc4

    (@doc4)

    I’ve tried disabling all of the plugins with no luck, though I suspect that I have two instances of jquery.

    <script type='text/javascript' src='https://portal.racingdudes.com/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp'></script>
    <script type='text/javascript' src='https://portal.racingdudes.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script>

    I’ve removed one at a time to no avail either. I’m also running this in a dev environment completely removed from the CDN and it’s still non-functional. I’m running out of ideas to try. I appreciate any thoughts on this.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    indeed, now the DataTables JS library is loaded. Those two lines regarding jQuery are also totally fine!

    Something else must be interfering. Can you therefore please try again after temporarily deactivating all other plugins and after switching to a WordPress default theme like Twenty Sixteen? That way, we can find what’s causing this.

    Regards,
    Tobias

    Thread Starter doc4

    (@doc4)

    Good call on switching themes. Let me try that, be right back.

    Thread Starter doc4

    (@doc4)

    Switching themes does, in fact, make the sorting work, with and without the plugins activated. I don’t think the plugins are the cause, something in the theme must be causing this to happen.

    Thread Starter doc4

    (@doc4)

    This is interesting, removing the header.php file seems to fix the problem. Still digging.

    Thread Starter doc4

    (@doc4)

    Alright removing <?php echo rdwpVueAppCssClasses(); ?> from the header fixes everything. I’m just not sure what this is at the moment.

    <body <?php body_class(); ?>>
    <?php wp_body_open(); ?>
    <div id="rd-wp-app" class="rdpp-v6-3-0 wrap <?php echo rdwpVueAppCssClasses(); ?>">
    Thread Starter doc4

    (@doc4)

    And the function is

    if ( ! function_exists( 'rdwpVueAppCssClasses' ) ) :
        function rdwpVueAppCssClasses() {
            return implode(
                    ' ',
                    ThemeOptions()->VUE_APP_CSS_CLASSES ?? []
            );
        }
    endif;
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    this seems to be adding an access-control CSS class, which might then be used in some JavaScript code that captures all clicks. That would be my guess here.

    My suggestion would be to ask the theme developers about this then.

    Regards,
    Tobias

    Thread Starter doc4

    (@doc4)

    Thank you, I’m doing just that. Good news is your plugin is not the issue ??
    I Really appreciate the help on this.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    sure, no problem! I hope that you can find a solution!

    Best wishes,
    Tobias

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Sorting and jquery functionality not working’ is closed to new replies.