Community Forums › Forums › General Discussion › Enterprise Theme Widget Not Working
This topic contains 17 replies, has 2 voices, and was last updated by Joseph Lee 4 months, 3 weeks ago.
-
AuthorPosts
-
January 25, 2013 at 2:38 pm #14735
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 #14748Go 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 #14753Why 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 #14755January 25, 2013 at 2:53 pm #14757I still get nothing on my homepage.
January 25, 2013 at 2:53 pm #14760I 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 #14762You 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 #14772I 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 #14796I 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 #14798That 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 #14821imminentwebdesign.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 #14822Nothing 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 #14823What are fancy qoutes?
Thank yo uso much for helping me by the way
January 25, 2013 at 4:10 pm #14829Fancy 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 #14834I 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?
-
AuthorPosts
The topic ‘Enterprise Theme Widget Not Working’ is closed to new replies.