TwentyTen Gallery Fix plugin

31 January 2011

TwentyTen will break galleries with more then 3 columns. Also 2 columns galleries look strange by default. This is a little fix.

Descriere in limba romana.

TwentyTen, the default WordPress theme, removes the default dynamic styles from WordPress galleries, and adds some static CSS, so galleries with anything but 3 columns look broken. It’s not a WordPress bug, it is TwentyTen specific.

What is the problem? TwentyTen theme’s CSS sets all the gallery items width to 33%, so any gallery with more then 3 columns looks broken (the items are thrown on the next row), as the the total width of the gallery excedes the post width (4 x 33% = 132%).

This plugin adds some custom classes to galleries (eg. 4 columns: .width-25), and some CSS that fixes the width problem.

Download

TwentyTen Gallery Fix (version 1.0)

WordPress.org plugin page.

No configuration needed. Just upload, and install. The galleries will look as they should.

Screenshots

twenty-ten-4-150-default twenty-ten-5-100-default

Default TwentyTen gallery preview

twenty-ten-4-150-fixed twenty-ten-5-100-fixed

Fixed TwentyTen gallery preview


Pagina: 1 2

Pe aceasi tema:

Voteaza

1 Star2 Stars3 Stars4 Stars5 Stars (3)

Urmatoarele articole

Comenteaza




Reactii