• Resolved danniee

    (@danniee)


    Hi!

    Is it possible to move the css that’s in the ‘plugin options’ and have it in a separate .css file, maybe even one for each table? I know I could put it in the child theme, but I want to make a .css from scratch.

    Where should I place the file and how can I point to it?

    Kind regards

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    TablePress does actually store this CSS in a .css file (/wp-content/tablepress-custom.css, /wp-content/tablepress-custom.min.css, and /wp-content/tablepress-combined.min.css) and loads it from there for better caching, etc.

    Splitting it even further is not directly possible. For that, your best chance would be to not use the “Custom CSS” field in TablePress but to put the CSS in your own files and load them via your theme.

    Regards,
    Tobias

    Thread Starter danniee

    (@danniee)

    I see it now. That’s perfect. So no need to edit in the ACP like I have been doing all along and which is a real pain lol.

    Thank you so much Tobias ??

    Thread Starter danniee

    (@danniee)

    A question however. When I make a change in the tablepress-custom-css, the ACP plugin options is not updated. What is the best approach here?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I would actually recommend to not directly edit the TablePress CSS files, but do this only via the “Plugin Options”. Otherwise, you will not automatically get the minified and concatenated versions.

    Unfortunately, I have no idea why that ACP plugin does not show the updated version, sorry.

    Regards,
    Tobias

    Thread Starter danniee

    (@danniee)

    Ouch, so I’m basically stuck with the Plugin Options box? I love the plugin, it’s essential for my site but top edit css in that box is a pain Tobias. It’s too small and eveytime I save it the box closes and I lose track of where I was.

    It’s not the end of the world however. I’ll figure something out. Thank you.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I’m not sure what you mean with “too small”. Doesn’t it expand when you click in it?

    Workarounds would then be to indeed manage your CSS externally (e.g. in a file on your computer, which you edit with a text editor) and then to simply copy/paste that CSS into the “Custom CSS” text field.
    And you could also manage your CSS together with the theme CSS, so that you won’t need the “Custom CSS” field on the “Plugin Options” screen.

    Regards,
    Tobias

    Thread Starter danniee

    (@danniee)

    Hi Tobias,

    It does indeed expand, but it is not really the same thing as working with programing in Dreamweaver for example.

    I will do as you suggested. Appreciate the help sir.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    sure, it’s not a full code editor ??
    But good to hear that the workaround should do!

    Best wishes,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘CSS in .css file instead of ACP’ is closed to new replies.