Title: Setting variable textwidget height
Last modified: August 19, 2016

---

# Setting variable textwidget height

 *  [hedde81](https://wordpress.org/support/users/hedde81/)
 * (@hedde81)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/setting-variable-textwidget-height/)
 * 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)

 *  [richarduk](https://wordpress.org/support/users/richarduk/)
 * (@richarduk)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/setting-variable-textwidget-height/#post-1565814)
 * 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.

## Tags

 * [height](https://wordpress.org/support/topic-tag/height/)
 * [text](https://wordpress.org/support/topic-tag/text/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [richarduk](https://wordpress.org/support/users/richarduk/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/setting-variable-textwidget-height/#post-1565814)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
