Community Forums › Forums › Archived Forums › Design Tips and Tricks › Minimum Pro – Eliminate Posts On Home Page
Tagged: minimum pro
- This topic has 5 replies, 4 voices, and was last updated 12 years, 6 months ago by
Adam Whitaker.
-
AuthorPosts
-
September 12, 2013 at 1:08 pm #62136
rstyner
ParticipantGuys,
What can I do to eliminate posts showing up on my homepage altogether when I'm using the Minimum Pro Child Theme?
Is it possible at all?
Thanks,
http://ridehomehappy.net
ScottSeptember 12, 2013 at 2:35 pm #62142wpspeak
MemberYes, that's possible.
I'm not a Minimum Pro user but I believe the post is generated by Genesis Grid loop. You may found it from the front-page.php file of your theme
http://my.studiopress.com/tutorials/genesis-grid-loop/
* Please note that in the tutorial, the code is placed in home.php but as far as I know, in Minimum Pro theme, it is now in your front-page.php file.
Removing the code will remove the posts from your home. Please let me know if that helps.
September 12, 2013 at 8:57 pm #62186rstyner
ParticipantOkay, I removed this (I have never done anything like this before and do not understand it at all....lol) code.
//* Genesis grid loop
function minimum_grid_loop_helper() {if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 0,
'feature_image_size' => 0,
'feature_content_limit' => 0,
'grid_image_size' => 0,
'grid_content_limit' => 250,
'more' => __( '[Read more]', 'minimum' ),
) );
} else {genesis_standard_loop();
}
}
And then got this error:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'minimum_grid_loop_helper' was given in /home/ridehome/public_html/wp-includes/plugin.php on line 406
Any idea what I messed up?
September 12, 2013 at 10:34 pm #62193regocreative
MemberHi wpspeak and rstyner;
I asked the same question today: http://www.studiopress.community/topic/minimum-pro-removing-blog-posts-from-front-page/
and wpspeak very kindly assisted as well. (Thank you!)However, I'm running into rstyner's exact issue...same error code & everything.
Thanks for any insights!
September 12, 2013 at 10:41 pm #62194regocreative
MemberK...so doing some experimenting, and I found that when I removed just this part of the code, it worked:
if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 0,
'feature_image_size' => 0,
'feature_content_limit' => 0,
'grid_image_size' => 0,
'grid_content_limit' => 0,
'more' => __( '[Read more]', 'minimum' ),
) );
} else {genesis_standard_loop();
}
This is what is left in the code:
//* Genesis grid loop
function minimum_grid_loop_helper() {}
//* Run the Genesis loop
genesis();Don't know if it's a big fluke, but it's working, so I'm going with that for now 🙂
September 20, 2013 at 12:32 pm #63551Adam Whitaker
ParticipantHey, that worked! Thanks!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.