• 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 theme, image not displaying

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 › enterprise theme, image not displaying

This topic is: not resolved
  • This topic has 28 replies, 3 voices, and was last updated 12 years, 2 months ago by archana.
Viewing 20 posts - 1 through 20 (of 29 total)
1 2 →
  • Author
    Posts
  • January 27, 2014 at 6:49 pm #87349
    archana
    Member

    hello
    i'm unable to display an image from home page, top widget #2

    (i'm unable to put a slider there either).

    any suggestions would be greatly appreciated.

    thanks

    http://www.archanainternational.com
    January 27, 2014 at 7:45 pm #87362
    nutsandbolts
    Member

    What happens when you try to put an image or slider there?


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    January 27, 2014 at 9:58 pm #87386
    archana
    Member

    hello,
    thank you for your help.

    I've tried both image and slider. Neither work.

    I changed the code on home.php (as per instructions on an earlier forum thread)- maybe that's where the problem is.

    or

    Maybe there's an issue with image size.

    Can you please tell me what size the images should be , to fit into the home page widget?

    Thanks

    January 27, 2014 at 10:00 pm #87387
    nutsandbolts
    Member

    Try this first - drag a text widget into the area and put some random text in there to be sure it shows up. If it doesn't, there's a problem. If it does, the image might be the wrong size (though you should still see at least part of it).

    Do you still have the link to the forum thread where you made changes to home.php? What changes did you make?


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    January 27, 2014 at 10:10 pm #87389
    archana
    Member

    hi,
    smart thinking!
    actually, the text widget does not produce text either

    i can not find the instructions of the code i changed
    however, here is a copy of all the code on home.php:

    <?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">';
    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 -->';

    }

    January 27, 2014 at 10:11 pm #87390
    nutsandbolts
    Member

    I would reverting back to the original home.php - changing the widget area for WP Cycle is likely what is causing the problem.

    <?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">';
    	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 -->';
    
    }
    
    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();

    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    January 27, 2014 at 10:12 pm #87391
    nutsandbolts
    Member

    Actually, now that I'm looking at it, it seems like everything is there (assuming that was only the first part of the file) so I'm a little confused.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    January 27, 2014 at 10:20 pm #87393
    archana
    Member

    here is my typing version of what was cut out from the bottom of home.php:

    echo'<div class="hope-top2">';
    if ( function_exists('wp_cycle'))wp_cycle();
    echo '</div><!-end .home-pop-2_>':
    echo'</div><!-end.wrap_></div><!-end#home-top_></div><!-end#home top bg_>';

    January 27, 2014 at 10:22 pm #87394
    nutsandbolts
    Member

    Like I said, I would try replacing it with the original above to see if that solves the problem. What were the changes to home.php supposed to do?


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    January 27, 2014 at 10:27 pm #87395
    archana
    Member

    the changes were supposed to make the slider show up in the widget area. there was a note saying that nothing would show up in that widget area until the code is changed.

    unfortunately, i do not remember the original code. (ie i am unable to change it back). i'm still looking for the thread that instructed me to change the code

    January 27, 2014 at 10:28 pm #87396
    nutsandbolts
    Member

    I gave you the original code above, a few replies back. That's an unaltered version of the Enterprise home.php file. You can use that to change it back.

    You can display a slider in that widget area without altering the home.php - it just has to be the correct size. You can use the Genesis Slider plugin.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    January 27, 2014 at 10:31 pm #87397
    archana
    Member

    thanks for your patience. i'm learning 🙂
    yes, i'll copy the code you provided above.

    can you please tell me the image size?

    January 27, 2014 at 10:33 pm #87398
    nutsandbolts
    Member

    Looks like the Home Top 2 area is 600px wide by 235px tall.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    January 27, 2014 at 10:44 pm #87402
    archana
    Member

    ok
    my site just crashed. and i'm on the phone with my web hosting company
    before it crashed, i had copied your suggested code into home.php, and then tried, unsuccessfully, to display text in the widget.
    i tried a second time, and then my site crashed.

    so, i'll write back as soon as i hear from tech support

    January 27, 2014 at 11:20 pm #87404
    archana
    Member

    according to my web hosting provider, the error message says:

    20140128T001549: http://www.archanainternational.com/index.php
    PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /hermes/waloraweb084/b1972/pow.jaiswalarchana/htdocs/wordpress/wp-content/themes/enterprise/home.php on line 12
    PHP Warning: Unknown: open(/var/php_sessions/sess_3dff9dbafb9efb940cc5889837b622b5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
    PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line

    January 27, 2014 at 11:22 pm #87405
    nutsandbolts
    Member

    Try replacing your home.php completely from the Enterprise theme zip file. Unzip the file on your computer, access your site's files via FTP or your hosting control panel, delete the existing home.php, and upload the clean one directly from the Enterprise folder on your computer. That will sort it.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    January 27, 2014 at 11:29 pm #87407
    archana
    Member

    hi,
    i cut and pasted the code onto home.php, again - and the website is back up
    still can't get the widget to display text

    i'm trying to get some support to implement your recommendations

    January 27, 2014 at 11:30 pm #87408
    nutsandbolts
    Member

    Okay, if the website is back up, don't worry about replacing the file - there's no need to do that now.

    If you haven't made very many customizations to the theme (and it looks like you haven't yet), you might try deleting Enterprise and uploading it again.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    January 27, 2014 at 11:33 pm #87409
    archana
    Member

    thank you for your help
    🙂

    January 28, 2014 at 12:08 am #87414
    archana
    Member

    hi, i just had another idea;
    i am using a theme called "enterprise child". this is an older version to the "enterprise pro".

    do you think that makes a difference in getting this widget functional?

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 29 total)
1 2 →
  • 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