• Resolved Endolil

    (@zabdesign)


    Hi there,

    when I am unchecking the checkbox ‘Yes, enable the use of a JavaScript library.‘ in the Frontend Options, WordPress is not anymore including jQuery into my website.

    Does anybody know this behaviour and how to work around? I don’t want the JavaScript libraries that WP-Table Reloaded includes with this option but I need jQuery for the site.

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

    (@tobiasbg)

    Hi,

    this is actually not the fault of WP-Table Reloaded.

    Merely, the situation was this: WP-Table Reloaded included jQuery (because the checkbox was checked) and you used it. Now, when unchecking the checkbox there’s no other plugin including jQuery anymore (because no other plugin seems to use it). That’s why the library isn’t there. It is not because WP-Table Reloaded “removed” it.

    So the correct thing to do, is to include the library yourself, with that piece of code that needs jQuery.
    That is as easy as adding code

    wp_enqueue_script( 'jquery' );

    to the functions.php of your theme.

    Best wishes,
    Tobias

    Thread Starter Endolil

    (@zabdesign)

    Thank you Tobias!
    Now I see clearly and it’s good to know. ??

    Danke!
    Dein Plugin ist wirklich fantastisch und für mich eine echte Revolution in der Arbeit mit Tabellen, die sonst ziemlich nervig sein k?nnen.
    Great job!

    Tobias,

    I think I have the same issue, but I am a newbie at this and am not sure where to add this code. I tried adding it on it’s own line, which didn’t work, and then I added it and blew up my site for a bit.

    Detailed instructions would be much appreciated.

    Thanks, and great plugin.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    to include the jQuery library, open your theme’s “functions.php” and go to the last line, which should be

    ?>

    Right before that line, insert the line from above.

    Best wishes,
    Tobias

    Thanks Tobias. Unfortunately I got impatient and tried to manually delete and reload the wp-table reloaded plugin from the host server.

    I was able to reload and reactivate the plugin, but now it appears I don’t have any java functionality. I have the java options checked in Plug-In Options, but the boxes in each tables for java functions are greyed out. Do you think it would work to delete the plugin entirely, reload through wordpress, and then import my dump file?

    Or do you think I overlooked an easier way to fix this issue?

    Thanks again for the help.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    whenever you load the dump file, you will get the same settings as there were when the dump was exported.

    To be able to use all the JavaScript features, you need to have the “Enable DataTables library” checked on the “Plugin Options” screen.
    Additionally (and that might be worth checking), you need to have the “Table Head” checkbox enabled.

    And: The stuff from the first posts of the email does not apply to you! You do not need to manually load the jQuery library!

    Regards,
    Tobias

    Well that was a ridiculous question I asked. I didn’t have the table head checkbox, which was why I couldn’t access the java features. I guess reloading the plugin unchecked that box.

    The java still isn’t working though. I took out the code you mentioned because I realized that wasn’t my problem either. I’ve also turned off all other plugins to see if they were causing a conflict. If you have time I’d appreciate you checking out my site to see if you can tell what’s happening.

    https://www.dallashiker.com/dallashikingtrails

    I appreciate your help a lot. I’m totally new to this, so I’m trying to fight my way through.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I just had a look at your site, but unfortunately could not find any reason for the problem.
    I suspect a JavaScript conflict, but don’t have a clue with which other piece of JavaScript.

    Can you try deactivating other plugins that use JavaScript?

    Additionally you might try asking in the Forums at https://www.datatables.net/forums as the developer of the DataTables JavaScript library might be able to find the cause of the problem.

    Best wishes,
    Tobias

    Thanks for taking a look Tobias. I can’t remember when I lost the java functions. They worked when I first created the tables, so something must have caused a conflict. I wonder if it was my theme. I changed from twenty ten to twenty ten weaver.

    I deactivated all plugins but wp-table reloaded a couple of days ago, and still couldn’t get the java to work. I’ll try the data tables forum.

    Thanks again for your help. This is a great plugin.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    if you disabled all other plugins, that indeed could mean that your new theme is causing a conflict.
    You could verify that, by temporarily switching back to the WP default theme.
    Otherwise, your best next step really is the DataTables forums.

    Best wishes,
    Tobias

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WP-Table Reloaded Option 'kills' jQuery’ is closed to new replies.