Title: widget area padding per page?
Last modified: August 20, 2016

---

# widget area padding per page?

 *  [platypotamus](https://wordpress.org/support/users/platypotamus/)
 * (@platypotamus)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/widget-area-padding-per-page/)
 * Hi all… I am setting up a site, using TwentyTen 1.2, and a child theme. I have
   a banner area on each page, which I have placed directly below the navigation
   bar. I order to get the widget area to move down and make room for this banner,
   I have used the following code in the child stylesheet.
 *     ```
       #main .widget-area ul {
       	margin-left: 0;
       	padding: 200px 20px 0 0;
       }
       ```
   
 * this works out just fine, except that I cannot seem to get the banner (or anything
   other than posts) to show in the content area of the blog page. Rather than struggling
   with the banner image issue I simply would like to make it so that the widget
   area does not have the 200px padding on this blog page. Is this possible to do
   within the child theme code, or do I have to go deeper into conditionals within
   the sidebar files?
 * thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [platypotamus](https://wordpress.org/support/users/platypotamus/)
 * (@platypotamus)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/widget-area-padding-per-page/#post-2308516)
 * apologies. I meant ti post this in the hacks or plugins and hacks area of the
   forum. please feel free to relocate the thread. thanks again for any assistance.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/widget-area-padding-per-page/#post-2308518)
 * you can use the css classes output by `body_class()` to style individual pages
   or achive pages;
    [http://codex.wordpress.org/Function_Reference/body_class](http://codex.wordpress.org/Function_Reference/body_class)
 * the blog page probably has the css class `.blog`; therefore try:
 *     ```
       .blog #main .widget-area ul {
       	padding: 0px 20px 0 0;
       }
       ```
   
 *  Thread Starter [platypotamus](https://wordpress.org/support/users/platypotamus/)
 * (@platypotamus)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/widget-area-padding-per-page/#post-2308600)
 * thanks so much. this is exactly what I was looking for.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘widget area padding per page?’ is closed to new replies.

## Tags

 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)

 * 3 replies
 * 2 participants
 * Last reply from: [platypotamus](https://wordpress.org/support/users/platypotamus/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/widget-area-padding-per-page/#post-2308600)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
