• 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

Home Top #2 on Enterprise Theme Doesn't Show

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 › General Discussion › Home Top #2 on Enterprise Theme Doesn't Show

This topic is: not resolved

Tagged: Enterprise

  • This topic has 12 replies, 4 voices, and was last updated 12 years, 5 months ago by mrizzotto.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • July 19, 2013 at 4:52 pm #51522
    MoodyRiviera
    Member

    Working on just the very beginning of a new site, and I've used the Enterprise theme before with no major problems...but now I'm having trouble.

    Problem is: No matter what I put into the Home Top #2 widget area, it does not show up when I save the the widget and then view the page.

    First thing I tried was a slider...the Soliloquy slider. It didn't show up.

    After that I've tried just using the Text widget to enter just plain old text...also have tried Featured Post and Featured Pages widget...but nothing shows up in the Home Top #2 area. The area just stays blank.

    I was hoping someone could take a look, and make some suggestions. Here's the URL:
    http://kumquatmeringue.com

    Thanks so much.

    http://www.kumquatmeringue.com
    July 19, 2013 at 6:10 pm #51538
    AnitaC
    Keymaster

    Open up your functions.php file and look for this:

    echo '<div class="home-top-2">';
    if ( function_exists( 'wp_cycle' ) )
    wp_cycle();
    echo '</div><!– end .home-top-2 –>';
    echo '</div><!– end .wrap –></div><!– end #home-top –></div><!– end #home-top-bg –>';

    Make it this:

    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 –>';

    Need help with customization or troubleshooting? Reach out to me.

    July 19, 2013 at 6:11 pm #51540
    AnitaC
    Keymaster

    Make sure you copy highlight and copy everything in the second box.


    Need help with customization or troubleshooting? Reach out to me.

    July 20, 2013 at 11:04 am #51616
    MoodyRiviera
    Member

    Dear Anitac,

    Thanks for your help.

    I looked in the functions.php file, as you suggested, but didn't see anything remotely resembling the code you showed...so I looked in the home.php file, and found some code that was "similar" to the code you showed.

    I replaced that code with the code you suggested as a replacement, but that crashed the site...got a syntax error message...so I replaced the modified home.php file with the original.

    Now the site is up again, but still can't see anything in the Home Top 2 widget area.

    Any more suggestions? Did I do something wrong? Thanks for any additional help.

    July 20, 2013 at 1:34 pm #51622
    bandj
    Member

    I looked in the functions.php file, as you suggested, but didn’t see anything remotely resembling the code you showed

    As anitac said, you should have this in there

    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">';
    if ( function_exists( 'wp_cycle' ) )
    wp_cycle();
    echo '</div><!-- end .home-top-2 -->';
    echo '</div><!-- end .wrap --></div><!-- end #home-top --></div><!-- end #home-top-bg -->';

    }

    I see the div for home top 2 but don't see a widget in there

    July 20, 2013 at 1:47 pm #51623
    AnitaC
    Keymaster

    Ahhhh this system added the apostrophe incorrectly! I will go and fix it.


    Need help with customization or troubleshooting? Reach out to me.

    July 20, 2013 at 1:57 pm #51626
    AnitaC
    Keymaster

    I hate when this website converts apostrophes and quotes! I fixed it.


    Need help with customization or troubleshooting? Reach out to me.

    July 20, 2013 at 6:34 pm #51657
    MoodyRiviera
    Member

    Here's all the code that's in my functions.php file. I don't see anything like what you both (Anitac and bandj) say is in there.

    So if that code is not in the functions.php file, then where is it?

    As I said earlier, I found some code that was *close* to what you referenced...but it was in the home.php file...not the functions.php file...although when I tried putting your code in there, the site totally crashed with a syntax error.

    Any ideas?

    <?php
    /** Start the engine */
    require_once( TEMPLATEPATH . '/lib/init.php' );

    /** Child theme (do not remove) */
    define( 'CHILD_THEME_NAME', 'Enterprise Theme' );
    define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/enterprise' );

    $content_width = apply_filters( 'content_width', 600, 420, 900 );

    /** Add new featured image sizes */
    add_image_size('mini', 65, 65, TRUE);
    add_image_size('homepage', 270, 80, TRUE);
    add_image_size('slideshow', 600, 235, TRUE);

    /** Add support for custom background */
    add_custom_background();

    /** Add support for custom header */
    add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 120, 'textcolor' => '333', 'admin_header_callback' => 'enterprise_admin_style' ) );

    /**
    * Register a custom admin callback to display the custom header preview with the
    * same style as is shown on the front end.
    *
    */
    function enterprise_admin_style() {

    $headimg = sprintf( '.appearance_page_custom-header #headimg { background: url(%s) no-repeat; font-family: Droid Sans, arial, serif; min-height: %spx; }', get_header_image(), HEADER_IMAGE_HEIGHT );
    $h1 = sprintf( '#headimg h1, #headimg h1 a { color: #%s; font-size: 36px; font-weight: normal; line-height: 42px; margin: 25px 0 0; text-decoration: none; }', esc_html( get_header_textcolor() ) );
    $desc = sprintf( '#headimg #desc { color: #%s; }', esc_html( get_header_textcolor() ) );

    printf( '<style type="text/css">%1$s %2$s %3$s</style>', $headimg, $h1, $desc );

    }

    /** Add support for 3-column footer widgets */
    add_theme_support( 'genesis-footer-widgets', 3 );

    /** Register widget areas */
    genesis_register_sidebar( array(
    'id' => 'home-top-1',
    'name' => __( 'Home Top #1', 'enterprise' ),
    'description' => __( 'This is home top #1 section.', 'enterprise' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-top-2',
    'name' => __( 'Home Top #2', 'enterprise' ),
    'description' => __( 'This is home top #2 section.', 'enterprise' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-middle-1',
    'name' => __( 'Home Middle #1', 'enterprise' ),
    'description' => __( 'This is home middle #1 section.', 'enterprise' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-middle-2',
    'name' => __( 'Home Middle #2', 'enterprise' ),
    'description' => __( 'This is home middle #2 section.', 'enterprise' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-middle-3',
    'name' => __( 'Home Middle #3', 'enterprise' ),
    'description' => __( 'This is home middle #3 section.', 'enterprise' ),
    ) );

    July 21, 2013 at 8:47 am #51692
    bandj
    Member

    Sorry MoodyRiviera, it is in the home.php file.
    Just get rid of the
    if ( function_exists( ‘wp_cycle’ ) )
    wp_cycle();

    And replace it with
    dynamic_sidebar( 'home-top-2' );

    July 21, 2013 at 10:26 am #51702
    MoodyRiviera
    Member

    Wow...OK...thanks. I'm happy to hear that I wasn't totally crazy when I couldn't find that code in the functions.php file. I replaced the code with your new code (in the home.php file), and now it works.

    Thanks so much to both of you...bandj and anitac...working over the weekend to help out a poor guy.

    September 18, 2013 at 4:27 pm #63295
    mrizzotto
    Member

    I found this post and it is the exact problem I am having, but when I try this fix, it doesn't work. It actually loses the site. i can't even pull it up. Did something change since July? I drilled down into the themes file and found enterprise and opened the home.php file, found what you were talking about, but nothing. Any guesses?

    September 18, 2013 at 5:13 pm #63304
    MoodyRiviera
    Member

    Can you give us the URL of your site, please?

    September 18, 2013 at 5:19 pm #63305
    mrizzotto
    Member

    bonjoegourmetchips.com
    I just started working on it, so there is random text and widgets just to see what shows up where.

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘General Discussion’ 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

© 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