WordPress 2.5.x: Widget size problem and its solution

June 24th, 2008 Posted in Theme, WordPress
There has been some complain regarding WordPress 2.5.x theme widget size. When you install WordPress 2.5.x and go to administrative area to further customize or add/remove widgets you might face widget size problem.  

Problem

When I try to customize it, widget size become big and all its useful buttons like remove and modify hide inside another layer. Please see the picture below. This is picture of widget when collapse(text widget)

 

This is same widget when it is expanded for editing. Most of its part is hidden behind main page layer (Like remove and modify buttons), which makes it difficult to edit as shown in figure below.

   

Solution

 Find: wp-admin/js/widjets.js

Find line 20 which looks like this: li.css( 'marginLeft', ( width - 250 ) * -1 );

Change the figure 1 on the end to a 0 so the line now looks like this; li.css( 'marginLeft', ( width - 250 ) * -0 );

I notice also in the file there is a comment which says “// it seems IE chokes on these animations because of the positioning/floating”

 

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • blogmarks
  • Blogosphere News
  • De.lirio.us
  • Furl
  • Technorati

Leave a Reply