- This topic has 4 replies, 3 voices, and was last updated 10 years, 1 month ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
This may be a basic question and simple solution, but I can't figure out how to show my latest blog posts on the front page of my site.
I was using the Balance theme and it was there, but then upgraded to the Executive Pro theme and they disappeared. I have the setting set to show all posts and not be a static page, but none are appearing. I would like them to show after the Call to Action. Any help would be appreciated.
Many themes nowadays are all customized, and don't just pop out latest Posts anymore, which is a little confusing.
I don't have Executive, but I have a place to look. Generally modern hipster theme homepages are populated by widgets. So go to Appearance.... Widgets, and see if you have some that are named "Home..something or other". Based on the code, I'm guessing you'll have a widget called Home Middle. Try dragging Recent Posts into that, and adjust the number of Posts to taste.
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
Thank you for your reply. I have tried that but it comes out as a skinny column and doesn't display correctly. I think it has to do with the theme. I'll gladly try any other suggestions.
There's a file that controls the markup of these modern hipster-theme home pages (hee - David, I love that!) called front-page.php. Before it can give us all those fun widget areas to play in, it disables the loop, which is the default way WordPress dumps a bunch of posts on a page.
You'll notice that happens on line 19 in the Executive Pro version of the file:
remove_action( 'genesis_loop', 'genesis_do_loop' );
Depending on what you want to do with your layout in the CSS, you can add the loop back in anywhere you want - inside a widget area or after it as you said you were planning.
Just paste in this line:
add_action( 'genesis_loop', 'genesis_do_loop' );
I think you might try putting it in the home-bottom widget. If the column that results is too narrow, you can widen it in the file style.css.
Hope that helps!
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
I didn't know what I was doing, but pasted that line back into the same section and it worked!! Thank you so much!! 🙂
© 2023 WPEngine, Inc.