Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Konstantin Kovshenin

    (@kovshenin)

    They can override by dequeuing what’s in columns.php. Or they can simply override the styles they need in their own stylesheet, maybe use !important where applicable. Having themes enqueue an extra stylesheet just for the columns layout is a little overkill, especially if you have to check it with file_exists first. Thoughts?

    Thread Starter Patrick Johanneson

    (@pjohanneson)

    I’m one of those people that thinks that if you need to use !important in a stylesheet, you’ve done something wrong. That’s where I like override stylesheets — especially considering you can tell WordPress what order they need to be loaded in.

    I don’t know how expensive file_exists() is — according to a quick Google search, not very.

    But in all honesty, you’re probably right — for a simple plugin, override stylesheets are probably overkill.

    Plugin Author Konstantin Kovshenin

    (@kovshenin)

    If you don’t like !important (I understand the reasons) you can just give it higher priority rule, like body .column 🙂

    Thread Starter Patrick Johanneson

    (@pjohanneson)

    I hadn’t thought of that. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CSS Override for Columns plugin’ is closed to new replies.