Generate Theme: Pages on Home

Community Forums Forums Design Tips and Tricks Generate Theme: Pages on Home

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  SoZo 1 year, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17708

    AC
    Blocked
    Post count: 7712

    Is there any way to replace the posts in the grid to show pages instead?

    [php]/** Add support for Genesis Grid Loop **/
    function child_grid_loop_helper() {

    if ( function_exists( ‘genesis_grid_loop’ ) ) {
    remove_action( ‘genesis_before_post_content’, ‘generate_post_image’, 5 );
    genesis_grid_loop( array(
    ‘features’ => 2,
    ‘feature_image_size’ => ‘featured’,
    ‘feature_image_class’ => ‘alignleft post-image’,
    ‘feature_content_limit’ => 0,
    ‘grid_image_size’ => ‘grid’,
    ‘grid_image_class’ => ‘alignleft post-image’,
    ‘grid_content_limit’ => 0,
    ‘more’ => __( ‘Continue reading…’, ‘genesis’ ),
    ‘posts_per_page’ => 6,
    ) );
    } else {
    genesis_standard_loop();
    }[/php]

    #17710

    SoZo
    Moderator
    Post count: 1573

    If you mean get the grid loop to work with pages, no. Best option is to add sidebars and featured page widgets.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #17713

    AC
    Blocked
    Post count: 7712

    Dang it! Okay, I will need to figure out how to start that with the sidebars. I’ll do it tomorrow when my brain is fresh! Thanks SoZo.

    #17714

    SoZo
    Moderator
    Post count: 1573

    You’re welcome :)


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Generate Theme: Pages on Home’ is closed to new replies.