Forums

Setting variable textwidget height (2 posts)

  1. hedde81
    Member
    Posted 1 year ago #

    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

  2. richarduk
    Member
    Posted 1 year ago #

    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;}

Topic Closed

This topic has been closed to new replies.

About this Topic