WordPress.org

Forums

[resolved] Custom Posts on a page template - spacing between them (3 posts)

  1. alexcreedy
    Member
    Posted 3 years ago #

    Hi,

    I am using the Twenty Ten theme.

    I have a page featuring testimonials which are custom posts. They appear on a page template i created with no sidebar. I can't identify in the CSS how to control the spacing between the testimonial boxes. I want to make them closer together.

    http://rudmantraining.com/wordpress/testimonials/

    Any suggestions would be appreciated.

    thanks
    Alex

  2. stvwlf
    Member
    Posted 3 years ago #

    It's this on line 525 style.css

    .hentry {
      margin: 0 0 48px;
    }

    don't change that as it will affect every page. add this to the bottom of the stylesheet:

    .page-template-page-testimonials-php .hentry {
      margin: 0 0 20px;
    }

    change 20px to whatever you want
    this will affect only the testimonials page

  3. alexcreedy
    Member
    Posted 3 years ago #

    Fantastic that did it, it targets that particular page... very useful!

    cheers
    Alex

Topic Closed

This topic has been closed to new replies.

About this Topic