• Resolved wackomako

    (@wackomako)


    Hi,

    I am using a number of addons to achieve the table on the page above. Change Datatables strings, Datatables Column Filter, Datatables ColumnFilter Widgets and Responsive tables. I will only be using the addons on this page and don’t want to run these plugins throughout the site. Is there a way to only include datatables.js on this page and not have the plugins activated throughout the site?

    Thanks

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

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    TablePress will only load and include the JavaScript files on pages where a table that uses the features is shown.
    This is a bit different however for CSS files. These need to be loaded in the page header, so loading them conditionally is tricky. For TablePress itself, you could try using the approach from https://www.ads-software.com/support/topic/enable-tablepress-resources-only-on-pages-that-use-them/#post-8645623
    For the Extensions, you would have to modify their source code.

    Regards,
    Tobias

    Thread Starter wackomako

    (@wackomako)

    Exactly what I was looking for! Thanks for your speedy response!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

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

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Load tablespress addons only on a certain page’ is closed to new replies.