Community Forums › Forums › Archived Forums › General Discussion › enterprise theme, image not displaying
- This topic has 28 replies, 3 voices, and was last updated 10 years, 3 months ago by archana.
-
AuthorPosts
-
January 27, 2014 at 6:49 pm #87349archanaMember
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.comJanuary 27, 2014 at 7:45 pm #87362nutsandboltsMemberWhat 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 #87386archanaMemberhello,
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 #87387nutsandboltsMemberTry 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 #87389archanaMemberhi,
smart thinking!
actually, the text widget does not produce text eitheri 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 #87390nutsandboltsMemberI 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 #87391nutsandboltsMemberActually, 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 #87393archanaMemberhere 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 #87394nutsandboltsMemberLike 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 #87395archanaMemberthe 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 #87396nutsandboltsMemberI 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 #87397archanaMemberthanks 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 #87398nutsandboltsMemberLooks 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 #87402archanaMemberok
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 #87404archanaMemberaccording 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 lineJanuary 27, 2014 at 11:22 pm #87405nutsandboltsMemberTry 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 #87407archanaMemberhi,
i cut and pasted the code onto home.php, again - and the website is back up
still can't get the widget to display texti'm trying to get some support to implement your recommendations
January 27, 2014 at 11:30 pm #87408nutsandboltsMemberOkay, 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 #87409archanaMemberthank you for your help
🙂January 28, 2014 at 12:08 am #87414archanaMemberhi, 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?
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.