Support » Plugin: Content Views - Post Grid & Filter for WordPress » Great content display plugin with its CSS to be improved.

  • This is a great plugin for displaying content from pages and posts. The free version offers essential functionality to customize content queries and layouts. While working on a web site using this plugin, I come across one frustrating thing – the plugin uses a lot of its own CSS that you have to override and workaround its use of ‘!important’ declaration which is a bad practice.

    Author, please remove all ‘!important’ declaration from the plugin CSS. This makes things tricky to style the elements to work with the design theme. You just need to provide more specificity to your selectors and avoid relying on ‘!important’ declaration.

    thank you

    • This topic was modified 2 months, 2 weeks ago by skylabb.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hi there,
    We understand your frustration with the “!important” in CSS.
    But we never do it for no reason.

    We believe that you are using Divi builder or Cheerup theme.
    They are only 2 cases that require our plugin to add “!important” to our CSS to prevent damaged layout caused by their CSS.

    For any other plugins or themes, no “!important” is added.

    So we hope you update your review if you find it reasonable or if you think that our plugin deserves more stars.

    Thank you!

    Does this mean you do not recommend using your plugin with Divi?

    Thanks for the quick response. I’m using a custom built theme. I can understand situations you need ‘!important’ declaration to keep the plugin content styling consistent. However, I much prefer without ‘!important’ declaration and be able to fix the styling in theme CSS myself.

    How about best of both world solution – provide a setting option so users can turn off ‘!important’ declaration injection or just have the plugin output raw HTML which can be styled by site developer anyway they want.

    I’ll add one more star to the review to show appreciation of your quick response.

    Thank you.

    • This reply was modified 2 months, 2 weeks ago by skylabb.
    • This reply was modified 2 months, 2 weeks ago by skylabb.
    Plugin Author Content Views

    (@pt-guy)

    Hi @skylabb,
    Thank you for your reply.

    Since you use a custom built theme, you still might see some “!important”.
    You are right that they are required to keep the plugin content styling consistent.
    We didn’t add them at the beginning, but after investigating and fixing layout issues caused by CSS of themes or other plugins from time to time.

    For these “!important”, you can easily override them. So providing a setting option might not be needed.

    Thank you for your update.

    Plugin Author Content Views

    (@pt-guy)

    Hi @sharonq,
    That means our plugin is fully compatible with Divi builder or Cheerup theme.
    The compatible issues were addressed and resolved in our plugin.
    Best regards,

    Hi author –
    Well, I do know how to override ‘!important’ which is the case I have to do now given no other choice. In general, the use of ‘!important’ should be avoided unless you have no other ways to style an element. ‘!important’ breaks the cascading affect in CSS and thus makes writing CSS rules more tricky. You then start to use more ‘!important’ declarations to over ride other ‘!important.’ It just gets ugly. We want beautiful code.

    So my suggestion is to provide an option to display views without plugin’s own CSS thus allowing total styling control to site owner.

    Plugin Author Content Views

    (@pt-guy)

    Hi @skylabb,
    Thank you for your reply and suggestion!
    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this review.