• 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

Problem editing Enterprise home template

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 › Problem editing Enterprise home template

This topic is: resolved
  • This topic has 7 replies, 2 voices, and was last updated 12 years, 5 months ago by SoZo.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • January 30, 2013 at 5:17 pm #16559
    tuAtlas
    Member

    Hi I have a similar problem but this is on enterprice theme (Version 1.1)

    I made a few modifications to the home.php namely remove the wp-cycle short code and added:

    if ( is_active_sidebar( 'home-top-2' ) ) {
    echo '<div class="home-top-2">';
    dynamic_sidebar( 'home-top-2' );
    echo '</div><!-- end .home-top-2 -->';

    So that I could use an easy rotator plug in and it works. However now I get post showing up at home-middle-1 and if I remove the post I get a

    "Sorry, no posts matched your criteria" notification.   I am not sure from the above answer what to add from that to resolve this.

    I am also NOT sure that removing and adding the above caused the problem because it did not show up until now after I dont know how many changes I made.

    The site is: http://www.laboratoriocdc.net/

    Thanks.


    http://www.tuatlas.com/
    http://sitios.negociosensanjuan.com/

    January 30, 2013 at 6:20 pm #16587
    SoZo
    Member

    Is that the only thing you changed in home.php? Post the entire content of home.php so I can take a look


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 30, 2013 at 8:34 pm #16634
    tuAtlas
    Member

    Hi Mr. Wright,

    It is the only thing I changed there. Here is the code:

     <?php
    /**
    * This file handles the output on the homepage.
    */
    
    add_action( 'genesis_after_header', 'enterprise_home_top_helper' );
    /**
    * Conditionally add Home Top #1 (home-top-1) sidebar and WP-Cycle.
    */
    function enterprise_home_top_helper() {
    
    echo '<div id="home-top-bg"><div id="home-top"><div class ="wrap">';
    
    if ( is_active_sidebar( 'home-top-1' ) ) {
    echo '<div class="home-top-1">';
    dynamic_sidebar( 'home-top-1' );
    echo '</div><!-- end .home-top-1 -->';
    }
    if ( is_active_sidebar( 'home-top-2' ) ) {
    echo '<div class="home-top-2">';
    dynamic_sidebar( 'home-top-2' );
    echo '</div><!-- end .home-top-2 -->';
    }
    echo '</div><!-- end .wrap --></div><!-- end #home-top --></div><!-- end #home-top-bg -->';
    
    }
    
    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-middle-1' ) || is_active_sidebar( 'home-middle-2' ) || is_active_sidebar( 'home-middle-3' ) ) {
    
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'enterprise_home_loop_helper' );
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    
    }
    }
    
    function enterprise_home_loop_helper() {
    
    echo '<div id="home-middle">';
    
    if ( is_active_sidebar( 'home-middle-1' ) ) {
    echo '<div class="home-middle-1">';
    dynamic_sidebar( 'home-middle-1' );
    echo '</div><!-- end .home-middle-1 -->';
    }
    
    if ( is_active_sidebar( 'home-middle-2' ) ) {
    echo '<div class="home-middle-2">';
    dynamic_sidebar( 'home-middle-2' );
    echo '</div><!-- end .home-middle-2 -->';
    }
    
    if ( is_active_sidebar( 'home-middle-3' ) ) {
    echo '<div class="home-middle-3">';
    dynamic_sidebar( 'home-middle-3' );
    echo '</div><!-- end .home-middle-3 -->';
    }
    
    echo '</div><!-- end #home-middle -->';
    
    }
    
    genesis();

    Thanks.


    http://www.tuatlas.com/
    http://sitios.negociosensanjuan.com/

    January 30, 2013 at 8:47 pm #16640
    SoZo
    Member

    Replace all that with this and let me know what happens

    <?php
    /**
     * This file handles the output on the homepage.
     */
    
    add_action( 'genesis_after_header', 'enterprise_home_top_helper' );
    /**
     * Conditionally add Home Top #1 (home-top-1) sidebar and WP-Cycle.
     */
    function enterprise_home_top_helper() {
    
    	echo '<div id="home-top-bg"><div id="home-top"><div class ="wrap">';
    
    	if ( is_active_sidebar( 'home-top-1' ) ) {
    		echo '<div class="home-top-1">';
    		dynamic_sidebar( 'home-top-1' );
    		echo '</div><!-- end .home-top-1 -->';
    	}
    	echo '<div class="home-top-2">';
    		dynamic_sidebar( 'home-top-2' );
    	echo '</div><!-- end .home-top-2 -->';
    	echo '</div><!-- end .wrap --></div><!-- end #home-top --></div><!-- end #home-top-bg -->';
    
    }
    
    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-middle-1' ) || is_active_sidebar( 'home-middle-2' ) || is_active_sidebar( 'home-middle-3' ) ) {
    
    		remove_action( 'genesis_loop', 'genesis_do_loop' );
    		add_action( 'genesis_loop', 'enterprise_home_loop_helper' );
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    
    	}
    }
    
    function enterprise_home_loop_helper() {
    
    	echo '<div id="home-middle">';
    
    	if ( is_active_sidebar( 'home-middle-1' ) ) {
    		echo '<div class="home-middle-1">';
    		dynamic_sidebar( 'home-middle-1' );
    		echo '</div><!-- end .home-middle-1 -->';
    	}
    
    	if ( is_active_sidebar( 'home-middle-2' ) ) {
    		echo '<div class="home-middle-2">';
    		dynamic_sidebar( 'home-middle-2' );
    		echo '</div><!-- end .home-middle-2 -->';
    	}
    
    	if ( is_active_sidebar( 'home-middle-3' ) ) {
    		echo '<div class="home-middle-3">';
    		dynamic_sidebar( 'home-middle-3' );
    		echo '</div><!-- end .home-middle-3 -->';
    	}
    
    	echo '</div><!-- end #home-middle -->';
    
    }
    
    genesis();

    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 31, 2013 at 7:03 am #16728
    tuAtlas
    Member

    Thanks. I made the change you suggested but the issue remains.


    http://www.tuatlas.com/
    http://sitios.negociosensanjuan.com/

    January 31, 2013 at 1:36 pm #16804
    SoZo
    Member

    Have you deactivated all plugins to rule out conflicts?


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 31, 2013 at 11:54 pm #16997
    tuAtlas
    Member

    Ok I think I found the culprit. I had a Genesis Post Teasers plug in and when I deactivated this that “Sorry, no posts matched your criteria” notification desapeared.

    Ok, I`ll see what I do with this plug in or if I use it at all.

    Thanks for the help.

     

     

     


    http://www.tuatlas.com/
    http://sitios.negociosensanjuan.com/

    February 1, 2013 at 8:22 am #17046
    SoZo
    Member

    You're welcome 🙂


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Problem editing Enterprise home template’ is closed to new 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