• 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 Widget Not Working

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 Widget Not Working

This topic is: resolved
  • This topic has 17 replies, 2 voices, and was last updated 12 years, 3 months ago by Joseph Lee.
Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • January 25, 2013 at 2:38 pm #14735
    Joseph Lee
    Member

    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 #14748
    SoZo
    Member

    Go 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 #14753
    Joseph Lee
    Member

    Why 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 #14755
    SoZo
    Member

    I don't know


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 25, 2013 at 2:53 pm #14757
    Joseph Lee
    Member

    I still get nothing on my homepage.

    January 25, 2013 at 2:53 pm #14760
    Joseph Lee
    Member

    I 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 #14762
    SoZo
    Member

    You 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 #14772
    Joseph Lee
    Member

    I 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 #14796
    Joseph Lee
    Member

    I 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 #14798
    SoZo
    Member

    That 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 #14821
    Joseph Lee
    Member

    imminentwebdesign.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 #14822
    SoZo
    Member

    Nothing 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 #14823
    Joseph Lee
    Member

    What are fancy qoutes?

     

     

    Thank yo uso much for helping me by the way

    January 25, 2013 at 4:10 pm #14829
    SoZo
    Member

    Fancy 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 #14834
    Joseph Lee
    Member

    I 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 #14840
    Joseph Lee
    Member

    Is 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 #14847
    SoZo
    Member

    Yes, 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 #14988
    Joseph Lee
    Member

    SoZo, 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!

  • Author
    Posts
Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘Enterprise Theme Widget Not Working’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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