• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Full Blog Post Still Showing

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Full Blog Post Still Showing

This topic is: not resolved

Tagged: agency pro, homepage, Post Settings, widgets

  • This topic has 8 replies, 2 voices, and was last updated 10 years, 5 months ago by AngEngland.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • May 10, 2015 at 10:48 pm #151636
    AngEngland
    Member

    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.com
    May 11, 2015 at 1:43 am #151655
    Johann Kratzik
    Member

    By 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 #151798
    AngEngland
    Member

    I 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 #151832
    Johann Kratzik
    Member

    I 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 #151881
    AngEngland
    Member

    Ah 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 #151895
    Johann Kratzik
    Member

    Sounds 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 #151924
    AngEngland
    Member

    K I need to just put it together and see if I can get it working.

    May 12, 2015 at 5:29 pm #151927
    AngEngland
    Member

    OK 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 #156356
    AngEngland
    Member

    Bumping this back up - Anyone know which section specifically I'm supposed to move into the functions file?

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble