WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] Remove Head Output (10 posts)

  1. SuperFastWeb
    Member
    Posted 1 year ago #

    Hi,

    Is there anyway to remove the output in the head code? Or put it somewhere else...?

    EG:

    <style type="text/css" media="all">
    /* <![CDATA[ */
    @import url("http://www.gpseo.com.au/wp-content/plugins/wp-table-reloaded/css/plugin.css?ver=1.9.3");
    @import url("http://www.gpseo.com.au/wp-content/plugins/wp-table-reloaded/css/datatables.css?ver=1.9.3");
    /* ]]> */
    </style>

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your question. You could copy these two lines into the "style.css" file of your theme, and then uncheck the "Use Default CSS" checkbox on the "Plugin Options" screen of WP-Table Reloaded.

    Regards,
    Tobias

  3. aundc
    Member
    Posted 1 year ago #

    wie könnte man die CDATA-Einträge (/*Plugin-Einstellungen ‹ WP-Table Reloaded*/) , die also die "zusätzlichen CSS-Anweisungen" enthalten, so auslagern sodass sie nicht im in voller Länge und dazu noch leider auf jeder Seite stehen, auch wenn gar keine Tabelle auf der Seite ist und auch nur da geladen werden, wo sie gebraucht werden? So ähnlich,, wie hier oben empfohlen?

    how it may be possible to outsource (!) all the "CDATA" from WP-Table Reloaded, here the "additional css-rules", into the style.css of the theme - sadly they are written into every page - although there might not exist any table - and got them imported with ( @import url ) but just only there & then if really needed?
    just like the example above?
    thank you!

    #edit: - resolved -
    yes - that does work really! :-)
    1. i switched off the option to embed the "additional css-rules" in the admin-area of WP-Table Reloaded, 2. did make an extra header for that specific page and imported into there these "additional css-rules"-styles ...

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your question.

    Unfortunately, this is not really possible, as the CSS is included in the <head> of the page - when it is not yet known, if there will be a table in the page.
    If you have just a little bit of "Custom CSS" code, this is not a problem in general, but I agree that it is not the best way if you have a lot of "Custom CSS". Therefore, the official and designated successor of WP-Table Reloaded, called TablePress, which is available at http://wordpress.org/extend/plugins/tablepress/, saves the "Custom CSS" to a file, by default. This has the advantage, that the file can be cached. It is still loaded on every page though.

    Regards,
    Tobias

  5. aundc
    Member
    Posted 1 year ago #

    well, like i did describe above in my #edit it did work really, in this very specific way to hide 170 rows of css from the header ;-)

    but,
    thanks a lot for your fast and important answer & information!
    So i'd switched to "TablePress", did import there my tabels easyly and do use now additional this "generatd file for storing and loading the “Custom CSS” code".

      pretty!
  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    awesome! Good to hear that this solution worked for you, and that the switch was so easy as well! :-)

    Best wishes,
    Tobias

  7. aundc
    Member
    Posted 1 year ago #

    yes, this worked fine!
    thanks a lot, Tobias!
    cheers
    C
    ps: one tiny thing else - is there a way to get a little bit more convenient input-fields widths in the "Table Content"-area? They are a bit slim in use for someones else.

  8. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    For that, I just wrote a small extension plugin which you can get here:
    https://github.com/downloads/TobiasBg/TablePress-Extensions/tablepress-edit-field-size.zip
    After installing this (just like any other WordPress plugin), the edit
    fields will be a little bit bigger. If you want them even bigger,
    you'll just have to increase the "height" and "width" values in the
    that plugin's file.

    Regards,
    Tobias

  9. aundc
    Member
    Posted 1 year ago #

    wow, thats amazing!
    everything has been thought of that simplifies procedures and increases convenience :-)
    thx again!

  10. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    no problem, you are very welcome! :-) Nice to hear that you like this approach!

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.