Community Forums › Forums › Archived Forums › Design Tips and Tricks › Full Blog Post Still Showing
Tagged: agency pro, homepage, Post Settings, widgets
- This topic has 8 replies, 2 voices, and was last updated 8 years, 10 months ago by AngEngland.
-
AuthorPosts
-
May 10, 2015 at 10:48 pm #151636AngEnglandMember
I have set up the Agency Pro theme and used the home page widgets, which I thought would override the other blog setting commands but yet the blog page settings remain active on the front page.
So I have the archive pages set to show 6 blog posts, and the home page shows the 6 posts up also. Do I have setting wrong?
Angela
http://angengland.comMay 11, 2015 at 1:43 am #151655Johann KratzikMemberBy viewing your website, I see that 6 posts are displayed on the homepage and 6 per page on archive pages - all of them with excerpts and not full posts.
Did you manage to resolve the issue or do you still have questions?
Offering customization work for FREE – Read more
May 11, 2015 at 4:47 pm #151798AngEnglandMemberI 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.
May 12, 2015 at 4:36 am #151832Johann KratzikMemberI guess you are talking about the blog posts showing up right under the sentence "THE RENAISSANCE WOMAN" if I understood correctly.
Did you make any modifications to the front-page.php template? There is a function called agency_home_genesis_meta() that removes the blog posts when at least one of the homepage widget areas is active.
Offering customization work for FREE – Read more
May 12, 2015 at 11:50 am #151881AngEnglandMemberAh got it - that's the step I missed that I didn't see in the set up documentation.
May 12, 2015 at 1:46 pm #151895Johann KratzikMemberSounds as if I could help 🙂 If the issue is resolved, you can mark the thread "resolved" so it can be closed.
Offering customization work for FREE – Read more
May 12, 2015 at 5:07 pm #151924AngEnglandMemberK I need to just put it together and see if I can get it working.
May 12, 2015 at 5:29 pm #151927AngEnglandMemberOK 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();
June 15, 2015 at 10:53 pm #156356AngEnglandMemberBumping this back up - Anyone know which section specifically I'm supposed to move into the functions file?
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.