WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] CSS file in loading in every pages (4 posts)

  1. forallatlantis
    Member
    Posted 1 year ago #

    Hi there

    How can I stop loading css file for this plugin in all pages. I would like to be loaded only on pages where there is a table to display, like JS file does.

    Best regards

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your question.

    Due to the way how CSS needs to be loaded in page, this is not directly possible. There is however a way to achieve this with some custom code.
    Please see this thread for more background information on this topic and ideas for such code:
    http://wordpress.org/support/topic/conditionally-load-tablepress-stylesheets

    Regards,
    Tobias

  3. forallatlantis
    Member
    Posted 1 year ago #

    I tried the hook but it didn't load the css at all

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    you'll need to adjust the page slugs in the code.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic