• Hi,

    I would like my textwidget to vary in height on 2 or 3 pages, I have customized my homepage first, and to achieve the goal I added to my style.css:

    .widget_text { height:240px; text-align: center; }

    Yet this logically sets height for the text widget on all pages.. So I want it to be like 280px on home, but 350 on ‘store’ etc.. (I don’t want to give it free height like it has once installed due to alignments)

    Should I copy the text_widget.php and call it text_widget2.php or something ?

    Thanks

Viewing 1 replies (of 1 total)
  • You might find that you have different body classes or post classes (depending on your theme) on different pages.

    You could then try something like body.category widget_text {height:whatever;} or div.category-oranges widget_text {height:whatever;}

Viewing 1 replies (of 1 total)

The topic ‘Setting variable textwidget height’ is closed to new replies.