• 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

Enterprise Pro Home Top

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 › Enterprise Pro Home Top

This topic is: not resolved

Tagged: Enterprise Pro, widgets

  • This topic has 4 replies, 3 voices, and was last updated 10 years, 8 months ago by Kent.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 1, 2014 at 2:22 pm #97954
    d00dbr0
    Member

    I would like to change the home top of enterprise pro to have two widgets, sise by side. I registered the widget areas in the functions file, and changed the home.php file, but I only get the home pages to show a list of blog posts.

    My site is http://www.graywolfpromotions.com

    Thanks in advance!

    http://www.graywolfpromotions.com
    April 1, 2014 at 2:30 pm #97956
    cwalsh
    Member

    You need to use the widget areas to show the content you want to be placed on the home page. Follow the instructions for the theme setup in your Member/Downloads area to add content to the widgets you have setup.


    Need website customization services or other help? Caley @ PixelPerfect Design Studio | Connect with me on Twitter: @pixelsperfect | Like me on Facebook: https://www.facebook.com/PixelPerfectDesignStudio

    April 1, 2014 at 2:35 pm #97959
    d00dbr0
    Member

    my apologies, I should have been more descriptive, I have text widgets in them both now with a few lines of text, and nothing is showing. Still same when I try other widgets.

    April 1, 2014 at 2:41 pm #97961
    d00dbr0
    Member

    Here is my front page code:

    <?php
    /**
     * This file adds the Home Page to the Enterprise Pro Theme.
     *
     * @author StudioPress
     * @package Enterprise Pro
     * @subpackage Customizations
     */
    
    add_action( 'genesis_meta', 'enterprise_home_genesis_meta' );
    /**
     * Add widget support for homepage. If no widgets active, display the default loop.
     *
     */
    function enterprise_home_genesis_meta() {
    
    	if ( is_active_sidebar( ‘home-top-left’ ) || is_active_sidebar( ‘home-top-right’ ) || is_active_sidebar( ‘home-bottom’ ) ) {
    
    		//* Force full-width-content layout setting
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    
    		//* Add enterprise-pro-home body class
    		add_filter( 'body_class', 'enterprise_body_class' );
    
    		//* Remove the default Genesis loop
    		remove_action( 'genesis_loop', 'genesis_do_loop' );
    
    		//* Add home top widgets
    		add_action( 'genesis_after_header', 'enterprise_home_top_widgets' );
    		
    		//* Add home bottom widgets
    		add_action( 'genesis_loop', 'enterprise_home_bottom_widgets' );
    
    	}
    }
    
    function enterprise_body_class( $classes ) {
    
    		$classes[] = 'enterprise-pro-home';
    		return $classes;
    		
    }
    
    function enterprise_home_top_widgets() {
    
    	genesis_widget_area( 'home-top-left', array(
    		'before' => '<div class="home-top-left widget-area one-half first"><div class="wrap">',
    		'after'  => '</div></div>',
    	) );
    	genesis_widget_area( 'home-top-right', array(
    		'before' => '<div class="home-top-right widget-area one-half"><div class="wrap">',
    		'after'  => '</div></div>',
    	) );
    	
    }
    
    function enterprise_home_bottom_widgets() {
    	
    	genesis_widget_area( 'home-bottom', array(
    		'before' => '<div class="home-bottom widget-area">',
    		'after'  => '</div>',
    	) );
    
    }
    
    genesis();

    And here is the functions file:

    <?php
    //* Start the engine
    include_once( get_template_directory() . '/lib/init.php' );
    
    //* Set Localization (do not remove)
    load_child_theme_textdomain( 'enterprise', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'enterprise' ) );
    
    //* Child theme (do not remove)
    define( 'CHILD_THEME_NAME', __( 'Enterprise Pro Theme', 'enterprise' ) );
    define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/enterprise/' );
    define( 'CHILD_THEME_VERSION', '2.0.1' );
    
    //* Add HTML5 markup structure
    add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );
    
    //* Add viewport meta tag for mobile browsers
    add_theme_support( 'genesis-responsive-viewport' );
    
    //* Enqueue Lato and Titillium Web Google fonts
    add_action( 'wp_enqueue_scripts', 'enterprise_google_fonts' );
    function enterprise_google_fonts() {
    
    	wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:300,700,300italic|Titillium+Web:600', array(), CHILD_THEME_VERSION );
    	
    }
    
    //* Enqueue Responsive Menu Script
    add_action( 'wp_enqueue_scripts', 'enterprise_enqueue_responsive_script' );
    function enterprise_enqueue_responsive_script() {
    
    	wp_enqueue_script( 'enterprise-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
    
    }
    
    //* Add new image sizes
    add_image_size( 'featured-image', 358, 200, TRUE );
    add_image_size( 'home-top', 750, 400, TRUE );
    
    //* Add support for custom header
    add_theme_support( 'custom-header', array(
    	'header-selector' => '.site-title a',
    	'header-text'     => false,
    	'height'          => 160,
    	'width'           => 320,
    ) );
    
    //* Add support for additional color style options
    add_theme_support( 'genesis-style-selector', array(
    	'enterprise-pro-black'	=> __( 'Enterprise Pro Black', 'enterprise' ),
    	'enterprise-pro-green'	=> __( 'Enterprise Pro Green', 'enterprise' ),
    	'enterprise-pro-orange'	=> __( 'Enterprise Pro Orange', 'enterprise' ),
    	'enterprise-pro-red'    => __( 'Enterprise Pro Red', 'enterprise' ),
    	'enterprise-pro-teal'	=> __( 'Enterprise Pro Teal', 'enterprise' ),
    ) );
    
    //* Add support for structural wraps
    add_theme_support( 'genesis-structural-wraps', array(
    	'header',
    	'nav',
    	'subnav',
    	'site-inner',
    	'footer-widgets',
    	'footer',
    ) );
    
    //* Add support for 3-column footer widgets
    add_theme_support( 'genesis-footer-widgets', 3 );
    
    //* Hook after post widget after the entry content
    add_action( 'genesis_after_entry', 'enterprise_after_entry', 5 );
    function enterprise_after_entry() {
    
    	if ( is_singular( 'post' ) )
    		genesis_widget_area( 'after-entry', array(
    			'before' => '<div class="after-entry widget-area">',
    			'after'  => '</div>',
    		) );
    
    }
    
    //* Remove comment form allowed tags
    add_filter( 'comment_form_defaults', 'enterprise_remove_comment_form_allowed_tags' );
    function enterprise_remove_comment_form_allowed_tags( $defaults ) {
    	
    	$defaults['comment_notes_after'] = '';
    	return $defaults;
    
    }
    
    //* Register widget areas
    genesis_register_sidebar( array(
    	'id'          => 'home-top-left',
    	'name'        => __( 'Home - Top Left', 'enterprise' ),
    	'description' => __( 'This is the top left section of the homepage.', 'enterprise' ),
    ) );
    genesis_register_sidebar( array(
    	'id'          => 'home-top-right',
    	'name'        => __( 'Home - Top Right', 'enterprise' ),
    	'description' => __( 'This is the top right section of the homepage.', 'enterprise' ),
    ) );
    genesis_register_sidebar( array(
    	'id'          => 'home-bottom',
    	'name'        => __( 'Home - Bottom', 'enterprise' ),
    	'description' => __( 'This is the bottom section of the homepage.', 'enterprise' ),
    ) );
    genesis_register_sidebar( array(
    	'id'          => 'after-entry',
    	'name'        => __( 'After Entry', 'enterprise' ),
    	'description' => __( 'This is the after entry widget area.', 'enterprise' ),
    ) );
    
    October 22, 2014 at 12:28 pm #128779
    Kent
    Participant

    d00br0,

    Did you get the above code to work? I'm hoping to do same with a version of Enterprise Pro, split the Home Top into 2 widget areas. Wanted to know if you got it working before I started with your code.

    Tks.
    -Kent


    Dad. Biker. Designer. | kentfackenthall.com

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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