Home page panes sizing
AnonymousAugust 25, 2012 at 4:26 pm #5537
I have created a site using graphene’s homepage panes feature that shows the 5 most recent post from a certain category on the home page. The most recent post is currently sized larger than the other 4.
I did this by targeting the most recent post’s homepage pane id in the CSS. I have just realized that as new posts are added to this category they will not take on the larger size.
Is there a way to assign a certain size to only the most recent post’s homepage pane and make the rest smaller? Please let me know if any of you have figured this out.
Thank you so much!!
Yes, this is probably possible using a
Try something like this:
Not tested; I’m just pulling this off the top of my head. Play around with it and let us know if you find something that works or encounter further difficulties.
AnonymousAugust 26, 2012 at 5:33 pm #32162
Thanks for the suggestion. I gave it a shot but no luck so far. I used the code below
but the newest post still stays the same size as the smaller ones. I’m thinking of just keeping these 5 posts as designated home page posts by making them the only ones in the category assigned to display in the homepage panes. That way I can control which posts get featured on the homepage. Would be better if it was automated but the sizing issue seems to be making that impossible.Mod
AnonymousAugust 27, 2012 at 4:29 am #32164
@Ken, your second code is missing a . and you’ve separated
panewith a dash. It should be a
AnonymousAugust 27, 2012 at 4:34 am #32165
Nope, it doesn’t have a
first-childclass. Everything is dynamic.
<div <?php graphene_grid( 'homepage_pane clearfix', 8, 5, 4, $alpha, $omega ); ?> id="homepage-pane-<?php the_ID();
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.