Home › Community Forums › Optimal Theme Support › Home Featured Posts Alignment
- This topic has 4 replies, 2 voices, and was last updated 10 years, 7 months ago by
Wes.
-
AuthorPosts
-
October 18, 2012 at 8:41 pm #1647
RobertKCole
CustomerAll my Home Featured Posts are falling in a single column as opposed to aligning side-to-side.
I am dropping three Genesis Featured Post Widgets into the “Home Featured Posts” area.
What am I missing to reproduce the format used for Featured Posts in the Demo?
October 18, 2012 at 8:57 pm #1648RobertKCole
CustomerA little clarification – I want to display three featured posts (similar to the Demo) but to have one from my Blog category, one from my Portfolio category and a third from my News category (three separate post categories)
October 18, 2012 at 10:06 pm #1649Wes
ModeratorHello Robert,
The demo actually just shows 1 Featured Posts widget that is set to show 3 posts horizontally. The posts show horizontally because the css is written to have the posts/div’s float next to each other. So the reason your posts are stacking is because you are using 3 multiple (separate) widgets rather than 3 posts from 1 widget (does that make sense?).
We can still make this happen though. You can still have separate widgets float next to each other to appear in the same way as the demo, but they will have to be adjusted in your css to do so. If you can give me a link, I can help get this going once I take a look at your site and the code.
October 18, 2012 at 10:25 pm #1651RobertKCole
CustomerI see – that now makes sense.
The site is temporarily hosted at http://shopngirl.com.
No featured images yet for the 2nd & 3rd posts, but you will get the idea.
Thanks for the help.
October 18, 2012 at 10:34 pm #1652Wes
ModeratorAdd this code to your style.css file. You can add it anywhere, but if you want to add it to the home-featured-posts section you can paste it around line 787.
.home-featured-posts .featuredpost {
clear: none;
float: left;
width: 215px;
}Since you’re doing it this way, you probably noticed the widget titles are pushed to the right a little bit because of the margin. To fix this you would simply decrease the left margin for the – “.home-featured-posts .featuredpost .widgettitle” which can be found in the same section of your css around line 805 or so (maybe a bit further down once you add the above code)
Change this –
.home-featured-posts .featuredpost .widgettitle {
margin: 0 0 20px 20px;
}To this –
.home-featured-posts .featuredpost .widgettitle {
margin: 0 0 20px 0;
} -
AuthorPosts
- You must be logged in to reply to this topic.