Title: Post Width
Last modified: August 21, 2016

---

# Post Width

 *  [cms2043](https://wordpress.org/support/users/cms2043/)
 * (@cms2043)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-width-2/)
 * Hello,
    My site is demo.thepaisleybox.com.
 * I am trying to reduce the width of the blog posts on my homepage. I found that
   if I change the below code from 16 to 66 the width is reduced perfectly. However,
   when I do this it also moves down the text on my product description pages (example
   description page here: [http://demo.thepaisleybox.com/product/bridesmaid-box/](http://demo.thepaisleybox.com/product/bridesmaid-box/)).
 * `.entry-summary {padding: 16px;}`
 * Any way to increase the padding on the homepage blog posts without affecting 
   the product description pages?

Viewing 1 replies (of 1 total)

 *  [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-width-2/#post-3875354)
 * Yep… but you will need to use a [child theme](http://codex.wordpress.org/Child_Themes)
   with a custom `functions.php` file.
 * Once you have your custom functions.php file.. we can begin to use “conditionals”
   in our code.
 * So, something like this should work:
 *     ```
       function cms2043_adjust_homepage_padding() {
          if(is_home()) {
             ?>
             <style type="text/css">
             .entry-summary {padding: 66px;}
             </style>
             <?php
          }
       }
       add_action('wp_print_styles', 'cms2043_adjust_homepage_padding');
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Post Width’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Josh](https://wordpress.org/support/users/josh401/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/post-width-2/#post-3875354)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
