Community Forums › Forums › Archived Forums › General Discussion › Struggling with grid setup – please help
Tagged: Gensis Grid Loop
- This topic has 3 replies, 2 voices, and was last updated 7 years ago by Victor Font.
-
AuthorPosts
-
April 10, 2017 at 6:58 am #204549just_jdMember
Hi there, I am super new to WP and SP and am having a really hard time configuring my website. My theme - Altitude Pro - is WAY more complicated and hands-on than I expected, but I am soldiering on and doing my best to learn as fast as I can so please bear with me. Here's what I'd like to do:
I want to create a blog post with a stylish grid display of posts similar to the theme "Hoarder" by Themezilla. I've downloaded the Genesis Grid Loop plugin, activated it and copied the code as per the instructions to style sheet and home.php page, but just cannot get it to work. All the posts keep being displayed in the standard demo fashion.
Where did I go wrong? Any replies would be greatly appreciated (and pretty please keep them as super un-techhy as possible).
Cheers,
http://www.heartwork.org.uk
JDApril 10, 2017 at 1:50 pm #204590Victor FontModeratorGenesis is a developer's tool. There's no need for a plugin to display posts in a grid. Genesis has a built-in grid loop. Altitude Pro doesn't use home.php, it uses front-page.php. Either way, both of those pages are for home pages only. They have no impact on a blog page. To use the Genesis grid in a blog page, you have to create a page template. This is the code for page-gridloop.php from Outreach Pro:
<?php /** * This file provides a template for the grid loop. * * @author StudioPress * @package Outreach Pro * @subpackage Customizations */ /* Template Name: Grid-Loop */ //* Add widget support for homepage if widgets are being used add_action( 'genesis_meta', 'blog_page_genesis_meta' ); function blog_page_genesis_meta() { //* Remove entry meta in entry footer and Genesis loop remove_action( 'genesis_loop', 'genesis_do_loop' ); //* Add Genesis grid loop add_action( 'genesis_loop', 'child_grid_loop_helper' ); //* Remove entry footer functions remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); } //* Genesis grid loop function child_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]', 'altitude' ), ) ); } else { genesis_standard_loop(); } } genesis();
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?April 10, 2017 at 11:47 pm #204606just_jdMemberThank you very much for taking the time to reply to me Victor. I originally downloaded the plugin because that was what StudioPress support suggested, but am happy to go with your suggestion instead.
I am not sure how to create a page template but have attempted the following: I downloaded the page.php file from my main Genesis folder and uploaded it to my Altitude Pro folder. I then copied and paste the code above onto that page.php file and saved it, but my blog still appears in the standard way (I've refreshed and also created a new blog-template page to double check). Is there anything else I need to do to get the code from the page.php file to run?
Thanks again for your help.
April 11, 2017 at 6:04 am #204618Victor FontModeratorYou have to assign the new page template to your blog page. I hope you renamed it from page.php to page-somethingelse.php.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet? -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.