Enterprise Theme Widget Not Working

Community Forums Forums General Discussion Enterprise Theme Widget Not Working

This topic is: resolved

This topic contains 17 replies, has 2 voices, and was last updated by  Joseph Lee 1 year, 10 months ago.

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #14735

    Joseph Lee
    Participant
    Post count: 140

    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.

    #14748

    SoZo
    Moderator
    Post count: 1573

    Go into home.php and change this
    [php]if ( function_exists( ‘wp_cycle’ ) )
    wp_cycle();[/php]
    to this
    [php]dynamic_sidebar( ‘home-top-2′ );[/php]


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

    #14753

    Joseph Lee
    Participant
    Post count: 140

    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.

    #14755

    SoZo
    Moderator
    Post count: 1573

    I don’t know


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

    #14757

    Joseph Lee
    Participant
    Post count: 140

    I still get nothing on my homepage.

    #14760

    Joseph Lee
    Participant
    Post count: 140

    I deleted everything you showed me. Was I supose to leave the first line and replace the second line?

    #14762

    SoZo
    Moderator
    Post count: 1573

    You need to replace the wp-cycle template tag with the sidebar call


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

    #14772

    Joseph Lee
    Participant
    Post count: 140

    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.

    #14796

    Joseph Lee
    Participant
    Post count: 140

    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 –>';

    }

    #14798

    SoZo
    Moderator
    Post count: 1573

    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

    #14821

    Joseph Lee
    Participant
    Post count: 140

    imminentwebdesign.com

     

     

    I dont have such a plugin, BUT this code doesn’t work! I used ctrl+shift+r to clear cashe.

    #14822

    SoZo
    Moderator
    Post count: 1573

    Nothing wrong with the code you posted other than the fancy quotes.


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

    #14823

    Joseph Lee
    Participant
    Post count: 140

    What are fancy qoutes?

     

     

    Thank yo uso much for helping me by the way

    #14829

    SoZo
    Moderator
    Post count: 1573

    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

    #14834

    Joseph Lee
    Participant
    Post count: 140

    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?

Viewing 15 posts - 1 through 15 (of 18 total)

The topic ‘Enterprise Theme Widget Not Working’ is closed to new replies.