Community Forums › Forums › Archived Forums › Design Tips and Tricks › Recent Posts onto index page on Enterprise Pro
Tagged: Enterprise Pro, index page
- This topic has 8 replies, 2 voices, and was last updated 8 years, 2 months ago by Chop.
-
AuthorPosts
-
January 3, 2016 at 5:30 pm #175501ChopMember
Hi All,
I am looking to modify my site which uses the enterprise pro theme.
I'd like to have recent posts list on the front page and have the side bar like on the archive pages.
Is this possible? Any guidance on what I'd need to change?
In addition, what part of the style.css is pertinent to graphic changes of the category archive post listings?
Thanks in Advance!
Brian
http://longdistancehiker.comJanuary 3, 2016 at 6:08 pm #175504JamesParticipantHi Brian
did you want the home top widget showing as well, and then normal posts and sidebar under that
or just have all posts and a sidebar on the home page, and none of the home page widgets at all?
January 3, 2016 at 6:15 pm #175506ChopMemberHi Jamie,
Thanks for your response 🙂
No home top widget. Posts and sidebar and keep the bottom home page widgets as well.
January 3, 2016 at 6:35 pm #175508JamesParticipantHey you buddy
this should work
i just added the default loop back in and re-positioned the widgets. plus removed the force full width filter.
https://gist.github.com/jamiemitchell/915b3e62363b23008721
Just replace your front-page.php with that.
January 3, 2016 at 9:38 pm #175516ChopMemberAwesome Jamie! That worked.
I've noticed that some small changes that I have made to how the posts get displayed in the category archives do not take effect on the home screen (ex post meta). Would you be able to give any guidance on where I would make those changes for the home page as well as where I would need to make changes with regard to the styling of posts both in the category archive and the front page?
Many Thanks!
January 3, 2016 at 9:41 pm #175517JamesParticipantsites looking great!
what is it you needed to do, remove the post meta on the front page?
let me know the specifics.
January 3, 2016 at 10:22 pm #175518ChopMemberThanks! I am looking to tighten up the look to show more content visually.
I just did a mockup in irfanview to show what I am looking to ultimately achieve. This screenshot shows it:
January 3, 2016 at 10:33 pm #175519JamesParticipantHey Brian
you can add this to your functions.php to filter the post info, just remove the bits of shortcode you don't want such as by [post_author_posts_link] [post_comments] [post_edit]
//* Customize the post info function add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { if ( !is_page() ) { $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]'; return $post_info; }}
this removes the post meta, goes in your functions.php too
//* Remove the post meta function remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
and something like this css here will remove the line in the entry header and bring the photo/excerpt up a bit.
.entry-header { border-bottom: medium none; margin: -40px -40px 0; padding: 40px; }
January 4, 2016 at 7:02 pm #175600ChopMemberThanks for your help. I'll keep working through these and hopefully dial it in.
Didn't get rid of 'Filed Under' area with the above code, but this works:
add_filter( 'genesis_post_meta', 'crunchify_post_meta_filter' ); function crunchify_post_meta_filter($post_meta) { if ( !is_page() && !is_home() && !is_front_page() && !is_archive()) { $post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]'; return $post_meta; }}
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.