Changing the WordPress widget width using CSS

Situation: The client has a website using WordPress. They feel the WordPress widget is too wide and use too many spaces and would like to change the default size of the iframe containing the widget. Here is how.

  1. Login WordPress administartor account.
  2. Go to Appearance>Customize.

3. Click on Additional CSS

4. On the Additional CSS screen, enter the appropriate code for your theme (see below), then click Publish to save the settings. This is an example CSS codes.

.widgetMode .s1_grid_12,
.widgetMode .container_12
{
   /* change 400px to any desired value */
   width: 400px !important;;
   margin-left: 0 !important;
}

Published by

Bob Lin

Bob Lin, MS-MVP, MCSE & CNE Data recovery, Windows OS Recovery, Networking, and Computer Troubleshooting on http://www.ChicagoTech.net How to Install and Configure Windows, VMware, Virtualization and Cisco on http://www.HowToNetworking.com