WordPress.org

Ready to get started?Download WordPress

Forums

Featured Posts Grid
Whitespace inside cell above thumbnail images (3 posts)

  1. dpanitz
    Member
    Posted 2 years ago #

    There is a big chunk of space at the top of each cell, above the image. That is, the image won't flush with the top of the cell.

    No matter what image options I change, I can't get this space to go away.

    Am I missing something simple?

    http://wordpress.org/extend/plugins/featured-posts-grid/

  2. Chaser324
    Member
    Plugin Author

    Posted 2 years ago #

    Likely something odd going on with the styling on the <img> due to some of your theme's CSS. Point me in the direction of where it's occurring, and I'm sure we can figure it out.

  3. TheJudBuechlerExperience
    Member
    Posted 1 year ago #

    I ran into this as well. Inside featured-posts-grid.php you are adding linebreaks after each string concatenation. The line break after the "a" tag is turning into an HTML "br" tag. This is causing the empty space to be above the image.

    Just replace this line:

    $output .= '<a href="'.$post_permalink.'">'."\n";

    with:

    $output .= '</a><a href="'.$post_permalink.'">';

    and the problem is fixed.

    Awesome plug-in BTW.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic