Plugin and theme css not working well together?

“The plugin does not look right in my theme”

Themes do all kinds of weird and wonderful things sometimes without thinking about the unintended consequences on other html. A classic example of this has been the “unremovable” css bullets.

The icalevents plugin provides a minimal default css with the hope that the html will pick up styling from your theme, enabling the plugin html to blend in with the theme and “belong”.

Sometimes the theme css does not look right when applied to the plugin html, and needs to be “overridden”.

Custom CSS

If the default css does not work with your theme, the plugin provides 2 options:

Do not generate any css.

Tick do not generate css

Tick do not generate css

The expectation here is that either

  • the plugin css is not required – the html looks fine in your theme, or
  • that you have modified your theme’s css

Create a custom css file for the plugin.

Do NOT edit the icallist.css – it will be overwritten the next time that you do an upgrade.

Untick "Do not generate css" and select your custom css file.

Untick "Do not generate css" and select your custom css file.

  • Rather make a copy of it, call it whatever you like, and save it in the plugin directory.
  • Then you will be able to select it in the options screen.

The plugin will then add that css file into the website’s css which ever theme you are using.  See the next post for a case study.

Share or Save:
  • RSS
  • del.icio.us
  • Twitter
  • Digg
  • Slashdot
  • Technorati
  • Google Bookmarks
  • StumbleUpon
  • Facebook

Related posts:

  1. V2.9.1 simpler default css, Neg bymonthday messages removed
  2. Hovers, Lightboxes or Clever CSS?
  3. V2.8 Months, months past, css, no images
  4. Ical Events Plugin and widget on wp 3.0 beta
  5. Case study: border lines and spacing

This entry was posted in Css, How To and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>