Community Forums › Forums › Archived Forums › Design Tips and Tricks › Jane Theme – Homepage
- This topic has 7 replies, 3 voices, and was last updated 11 years, 11 months ago by
AnitaC.
-
AuthorPosts
-
December 14, 2013 at 10:47 am #79055
mrhiking
MemberHello -
Probably a simple question but here's what I'm trying to do.
Show 1 post on the homepage. I'm used to seeing a blog.php file in a theme and modifying that. In the Jane theme I don't see that file. How can I edit my home page. I want to add the author box, comments, and links to next and previous posts.
Thanks!
- MikeDecember 14, 2013 at 11:01 am #79059AnitaC
KeymasterYou would be looking at the home.php file. Are you trying to add one blog so that it shows the author box, comments and linkes to next and previous? Do you want the home page to only be your blogs?
Need help with customization or troubleshooting? Reach out to me.
December 14, 2013 at 11:05 am #79063mrhiking
MemberYep. Pretty simple.
Here is the current home.php. Any idea where/what I change?
<?php add_action( 'genesis_meta', 'jane_home_genesis_meta' ); /** * Add widget support for homepage. * */ function jane_home_genesis_meta() { if ( is_active_sidebar( 'slider' )) { add_action( 'genesis_before_loop', 'jane_home_loop_helper' ); } } /** * Display widget content for home slider section * */ function jane_home_loop_helper() { if ( is_active_sidebar( 'slider' )) { echo '<div id="slider">'; echo '<div class="slider">'; dynamic_sidebar( 'slider' ); echo '</div><!-- end .slider -->'; echo '</div><!-- end #slider -->'; } } genesis();December 14, 2013 at 11:22 am #79070AnitaC
KeymasterBy default, if you don't add anything to the widget areas, it will show your blog on the home page. But, it won't show the comment or author boxes. You'd have to add code to the functions.php file probably for that or directly in the home.php file. Using a static home page still will not give the comment or author boxes on the front page. I am looking to see if I can find a tutorial for you.
Need help with customization or troubleshooting? Reach out to me.
December 19, 2013 at 1:28 pm #80285killahfunkadelic
MemberI'm trying to limit the posts on the home page of Jane also-- but maybe 4-5 or so, not the 10 it seems to be showing by default.. Any ideas?
December 19, 2013 at 1:31 pm #80289AnitaC
KeymasterYou may have to do it in two places. First go to Settings > Reading and change 10 to whatever number you want. If that doesn't fix it - then go to Genesis > Theme Settings and look at the archive settings.
Need help with customization or troubleshooting? Reach out to me.
December 19, 2013 at 1:41 pm #80293killahfunkadelic
Memberding ding! it was the settings > reading one I missed. It also is only showing 5 posts now on the actual blog page, but i can live with that as long as it's not so many on the home page feed. thanks!
December 19, 2013 at 1:42 pm #80294 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.