• Resolved splaquet

    (@splaquet)


    this plugin seemed to be exactly the answer I was looking for, but i wasn’t having much luck with it from the get go. after HOURS of tooling around (and i’m far from a coder), I finally started hacking out tons of code. I’m not sure what was causing this issue for me and not others, but if anyone else has weird alignment problems, here was my solution.

    original code in fgp.css.php:

    ul.fpg-row {
    height: <?php echo ($fpg_item_height + ($fpg_inner_border_width * 2) + $fpg_item_border_bottom_width + $fpg_item_border_top_width) ?>px;
    padding-left: <?php echo ($fpg_item_width + ($fpg_inner_border_width * 2) + $fpg_item_border_left_width + $fpg_item_border_right_width) ?>px;
    padding-bottom: <?php echo $fpg_spacing_horizontal ?>px;
    }
    
    li.fpg-item {
    height: <?php echo $fpg_item_height ?>px;
    width: <?php echo (100.0 / ($fpg_columns - 1)) ?>%
    }
    
    li.fpg-item.fpg-last-col {
    width: <?php echo floor(100.0 / ($fpg_columns - 1)) ?>%
    }

    modified code in fgp.css.php:
    (notice that I *ONLY* removed 1 instance of px and 2 instances of %)

    ul.fpg-row {
    height: <?php echo ($fpg_item_height + ($fpg_inner_border_width * 2) + $fpg_item_border_bottom_width + $fpg_item_border_top_width) ?>px;
    padding-left: <?php echo ($fpg_item_width + ($fpg_inner_border_width * 2) + $fpg_item_border_left_width + $fpg_item_border_right_width) ?>;
    padding-bottom: <?php echo $fpg_spacing_horizontal ?>px;
    }
    
    li.fpg-item {
    height: <?php echo $fpg_item_height ?>px;
    width: <?php echo (100.0 / ($fpg_columns - 1)) ?>
    }
    
    li.fpg-item.fpg-last-col {
    width: <?php echo floor(100.0 / ($fpg_columns - 1)) ?>
    }

    I can only hope that my hours of hacking won’t go to waste… and that someone else with these problems will be able to quickly avoid them by reading this.

    -shannon

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chaser324

    (@chaser324)

    My apologies that you had to sort through this on your own. Did you try contacting me via e-mail?

    I’m actually not 100% sure how your solution fixed the issue, but I’ll try to possibly integrate it or a similar fix into a future release.

    Thread Starter splaquet

    (@splaquet)

    maybe it has something to do with newer versions of PHP? I’ve noticed some weird inconsistencies with some of the plugins (jetpack namely) with the latest version of PHP.

    No idea what’s, but I’m just thrilled to have it working 🙂 Great app!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘FPG wouldnt left justify, wasnt aligning vertically & just wasnt working right’ is closed to new replies.