Community Forums › Forums › Archived Forums › General Discussion › Enterprise Theme Widget Not Working
- This topic has 17 replies, 2 voices, and was last updated 11 years, 2 months ago by Joseph Lee.
-
AuthorPosts
-
January 25, 2013 at 2:38 pm #14735Joseph LeeMember
I have a fresh enterprise theme. I can not put widgets in the top#2 widget area. They are there in the back office even when I refresh. Nothing appears in the slider on the front page though. When I use chrome to view the code, not text widget div is even inside of the element. It's like the widget area is dead?
Please help.
January 25, 2013 at 2:46 pm #14748SoZoMemberGo into home.php and change this
if ( function_exists( 'wp_cycle' ) ) wp_cycle();
to this
dynamic_sidebar( 'home-top-2' );
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 25, 2013 at 2:51 pm #14753Joseph LeeMemberWhy is that wrong inside of the theme? Why don't we update it if it's broken?
I really REALLY want to support and push Genesis. I don't understand why there are these little wrinkles though.
January 25, 2013 at 2:51 pm #14755SoZoMemberJanuary 25, 2013 at 2:53 pm #14757Joseph LeeMemberI still get nothing on my homepage.
January 25, 2013 at 2:53 pm #14760Joseph LeeMemberI deleted everything you showed me. Was I supose to leave the first line and replace the second line?
January 25, 2013 at 2:55 pm #14762SoZoMemberYou need to replace the wp-cycle template tag with the sidebar call
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 25, 2013 at 3:01 pm #14772Joseph LeeMemberI am sorry. I had to install a fresh theme. I messed that one up. Can you be very specific? I am not a PHP guy.
/**
* 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' );
Please rewrite it for me. I am sorry. If you have a phone number/business and can fix this, I will happily pay you.
January 25, 2013 at 3:26 pm #14796Joseph LeeMemberI tried this code. I figured, home-top-1 sidebar is showing up on the front page, but sidebar 2 isn't. This still doesn't work though.
/**
* 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 -->';}
January 25, 2013 at 3:28 pm #14798SoZoMemberThat should work. But make sure you don't have fancy quotes in the code. You don't have a caching plugin activated do you? What's the URL?
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 25, 2013 at 3:56 pm #14821Joseph LeeMemberimminentwebdesign.com
I dont have such a plugin, BUT this code doesn't work! I used ctrl+shift+r to clear cashe.
January 25, 2013 at 3:59 pm #14822SoZoMemberNothing wrong with the code you posted other than the fancy quotes.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 25, 2013 at 4:00 pm #14823Joseph LeeMemberWhat are fancy qoutes?
Thank yo uso much for helping me by the way
January 25, 2013 at 4:10 pm #14829SoZoMemberFancy quotes, a.k.a smart quotes and curly quotes, curl or slant. You need straight quotes in code.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 25, 2013 at 4:14 pm #14834Joseph LeeMemberI don't see where I included the fancy qoutes. The code isn't working though.
Do you see fancy qoutes in my second code post?
January 25, 2013 at 4:27 pm #14840Joseph LeeMemberIs there anyone else that might be able to assist me with this theme? I don't see where these qoutes are that would effect my code.
I really need help. I am about to give up on genesis. I don't feel like I should have to go in and modify their "ready to go code" 🙁
Someone please help
January 25, 2013 at 4:58 pm #14847SoZoMemberYes, all the code you posted has fancy quotes. The forum converts the quotes automatically which is why you should copy/paste from the forums directly unless the code is wrapped in code tags.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 26, 2013 at 8:28 am #14988Joseph LeeMemberSoZo, thank you for your continued assistance. The problem has been resolved thanks to you. I've also learned quite a bit.
I greatly appreciate your assistance. I also enjoyed your websites thoroughly. Pursuit of Happiness is an excellently designed page. I definitely learned a few css tricks from that page. Thanks!
-
AuthorPosts
- The topic ‘Enterprise Theme Widget Not Working’ is closed to new replies.