Latest blog posts on homepage
-
Hello, I am using the “Twenty Fourteen” theme and I would like to add the latest 4 or 5 posts from the Blog (NEWS AND EVENTS) to the homepage.
I would like to leave the same homepage looking the same way with the same info. But underneath the latest posts. Could you please help me with the CSS code for that?
Thanks
The blog I need help with is: (visible only to logged in users)
-
Hi there, see our Theme Showcase page for Twenty Fourteen for more information on setting up your home page. In particular, see the section on Featured Content and Featured images.
-
-
To reduce the spacing, you could add some CSS like this:
@media screen and (min-width: 1008px) { .home .grid .featured-content .entry-header { height: auto; min-height:1px; } } @media screen and (min-width: 846px) { .home .content-area { padding-top: 10px; } } -
Thanks,
that worked. It reduces the space from the top of the header image. Could we do the same with the bottom of the featured content.
Would it be another CSS code? Thanks
-
My apologies, I made a typo in the first part of the code. The correct code is this:
@media screen and (min-width: 1008px) { .grid .featured-content .entry-header { height: auto; min-height:1px; } } @media screen and (min-width: 846px) { .home .content-area { padding-top: 10px; } }(compared to the original code, remove “.home” from the second line)
-
-
This will hide the categories on the featured posts on the home page.
.home .featured-content .entry-meta { display: none; }On the featured image, are you talking about on those three featured posts, or the one below that above Welcome?
-
Thanks.
Yes, I’m talking about the three featured posts. I would like them to use less space in the screen. Is there any way to reduce that images height to 50%?
Thanks again!
-
Thanks for the clarification. I’ve changed the size of these 33% width to 25% and then distributed them evenly horizontally. I also adjusted the title sizes and centered them since when we go to 25% width, the titles become two lines and effectively negate the downsizing. See what you think.
.grid .featured-content .hentry { width: 25%; text-align: center; } .featured-content-inner { display: flex; justify-content: space-around; } .grid .featured-content .hentry .entry-title { font-size: 85% } -
-
With the way the HTML is structured, this would require a bunch of CSS and even then would not work cleanly.
- The topic ‘Latest blog posts on homepage’ is closed to new replies.



