Post Width

  • 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/ ).

    .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


    Moderator and Editor Customizer

    Yep… but you will need to use a child theme 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;}
    add_action('wp_print_styles', 'cms2043_adjust_homepage_padding');

Viewing 1 replies (of 1 total)
  • The topic ‘Post Width’ is closed to new replies.
Skip to toolbar