Forum Replies Created
-
AuthorPosts
-
AngEnglandMember
Thank you for letting me know. If this is a known problem one can only hope that means they are on it! Definitely not like them to let something like this slip through the cracks - hopefully they solve the issue very soon. My client's shop page looks like CRAP. 🙁 Sorry about your home page.
AngEnglandMemberBumping this back up - Anyone know which section specifically I'm supposed to move into the functions file?
AngEnglandMemberOK This is the code section in the Front Page file - which bits do I cut and paste into the Functions file?
<?php /** * This file adds the Home Page to the Agency Pro Theme. * * @author StudioPress * @package Agency Pro * @subpackage Customizations */ add_action( 'wp_enqueue_scripts', 'agency_enqueue_scripts' ); /** * Enqueue Scripts */ function agency_enqueue_scripts() { if ( is_active_sidebar( 'home-top' ) || is_active_sidebar( 'home-middle' ) || is_active_sidebar( 'home-bottom' ) ) { wp_enqueue_script( 'scrollTo', get_stylesheet_directory_uri() . '/js/jquery.scrollTo.min.js', array( 'jquery' ), '1.4.5-beta', true ); wp_enqueue_script( 'localScroll', get_stylesheet_directory_uri() . '/js/jquery.localScroll.min.js', array( 'scrollTo' ), '1.2.8b', true ); wp_enqueue_script( 'home', get_stylesheet_directory_uri() . '/js/home.js', array( 'localScroll' ), '', true ); } } add_action( 'genesis_meta', 'agency_home_genesis_meta' ); /** * Add widget support for homepage. If no widgets active, display the default loop. * */ function agency_home_genesis_meta() { if ( is_active_sidebar( 'home-top' ) || is_active_sidebar( 'home-middle' ) || is_active_sidebar( 'home-bottom' ) ) { //* Force content-sidebar layout setting add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); //* Add agency-pro-home body class add_filter( 'body_class', 'agency_body_class' ); //* Remove breadcrumbs remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); //* Remove the default Genesis loop remove_action( 'genesis_loop', 'genesis_do_loop' ); //* Add homepage home-top add_action( 'genesis_after_header', 'agency_homepage_top' ); //* Add homepage widgets add_action( 'genesis_loop', 'agency_homepage_widgets' ); //* Modify length of post excerpts add_filter( 'excerpt_length', 'agency_home_excerpt_length' ); } } function agency_body_class( $classes ) { $classes[] = 'agency-pro-home'; return $classes; } function agency_homepage_top() { genesis_widget_area( 'home-top', array( 'before' => '<div id="home-top" class="home-top widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); } function agency_homepage_widgets() { genesis_widget_area( 'home-middle', array( 'before' => '<div id="home-middle" class="home-middle widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); genesis_widget_area( 'home-bottom', array( 'before' => '<div id="home-bottom" class="home-bottom widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); } function agency_home_excerpt_length( $length ) { return 35; } genesis();
AngEnglandMemberK I need to just put it together and see if I can get it working.
AngEnglandMemberAh got it - that's the step I missed that I didn't see in the set up documentation.
AngEnglandMemberI want to make the posts show up on archive pages but NOT on the front page. I want the front page to just be the grid like in the example demo site.
Currently that Homepage Middle widget is showing up UNDER The 6 paginated blog posts on the front page instead of overriding them as the site set up documentation seems to suggest.
AngEnglandMemberOh I wasn't sure where to stick it but this one said "code snippets" so I thought maybe this would be the best place. I tassled back and forth with where to stick it.
-
AuthorPosts