• 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

AngEngland

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 17, 2015 at 9:30 am in reply to: Full-Width Page Template Not Working #174077
    AngEngland
    Member

    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.

    June 15, 2015 at 10:53 pm in reply to: Full Blog Post Still Showing #156356
    AngEngland
    Member

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

    May 12, 2015 at 5:29 pm in reply to: Full Blog Post Still Showing #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();
    
    May 12, 2015 at 5:07 pm in reply to: Full Blog Post Still Showing #151924
    AngEngland
    Member

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

    May 12, 2015 at 11:50 am in reply to: Full Blog Post Still Showing #151881
    AngEngland
    Member

    Ah got it - that's the step I missed that I didn't see in the set up documentation.

    May 11, 2015 at 4:47 pm in reply to: Full Blog Post Still Showing #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 10, 2015 at 10:50 pm in reply to: Drop Shadow on Homepage Top Text #151637
    AngEngland
    Member

    Oh 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.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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