Custom Widget Styles

By default, WordPress does not offer any kind of widget styling other than plain basic looking widgets in a page. Unless a theme provides you with its own custom default styling, we are at the mercy of using a plugin to achieve this — which is actually a good thing.

Widget Styles for Longevity Pro

I kept the available styles to a minimum because of the design concept of LongevityPro. However, you get to choice of using the default widget styling that comes with WordPress or you can use the custom styles I’ve given you which also includes colours.

  1. Widget Style: Default
  2. Widget Style: Box
  3. Widget Style: Border
  4. Widget Style: Bar
  5. Widget Style: Line

widget styles sample

Colour Styles

In addition to the widget styles you see above, you can also change the colours of them (with exception to the “Default” WordPress style) with the following colour classes in bold:

  1. Default is the light grey you see above.
  2. Blue = blue
  3. Tan = tan
  4. Grey = grey

IMPORTANT The colour options you see above are for the default theme colour scheme. Your widget colours will change based on the colour scheme you choose. The one colour that will remain the same across each colour scheme will be the default “light grey” colour, and will be in addition to the following colour options you see below. Also, these styles best work on the page background of white, so if you use them in the “Bottom” sidebar positions with the background colour, you may need to customize your colour styles with CSS.


  1. Sky = sky
  2. Light Sky = lightsky


  1. Dark Grey = darkgrey


  1. Burgandy = burgandy
  2. Light Burgandy = lightburgandy


  1. Rust = rust


  1. Green = green
  2. Light Green = lightgreen


  1. Olive = olive
  2. Light Olive = lightolive


  1. Yellow = yellow
  2. Light Yellow = lightyellow


  1. Orange = orange
  2. Light Orange = lightorange


  1. Brown = brown
  2. Light Brown = lightbrown


  1. Taupe = taupe
  2. Light Taupe = lighttaupe


  1. Tan = tan
  2. Light Tan = lighttan


  1. Aqua = aqua
  2. Light Aqua = lightaqua


  1. Purple = purple
  2. Light Purple = lightpurple


  1. Pink = pink
  2. Light Pink = lightpink


Install the Widget CSS Classes Plugin

To achieve the style results you see in the screenshot above, we need a plugin called “Widget CSS Classes” which when activated, adds a small text field at the bottom of every widget. In this field which gets labeled as “CSS Class”, we type in any of the classes I listed above in bold.

  1. Go to Plugins >> Add New
  2. In the Search field to the right, type in Widget CSS Classes, and then this should show up:
    widget css classes
  3. Click to Install and then activate the plugin

Adding a Style to a Widget

When you activate this plugin, it adds a small field to the bottom of each widget. All you need to do is type in the widget style of your choice, or simply leave it empty if you want to use the default WordPress style.

widget style field

EXAMPLE: Lets use the “box” style with the colour “blue“. When adding classes, make sure you leave a single space between each class.

widget style class