Template Help ( Please)

Community Forums Forums General Discussion Template Help ( Please)

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  cehwitham 1 year, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20098

    Joseph Lee
    Participant
    Post count: 119

    In several themes the homepage.php calls widget areas by simply doing functions like this:

    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 –>’;
    }

    I am trying to do a remove / add action to a template’s sidebar.

    remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );
    add_action( ‘genesis_sidebar’, ‘rets_landing_widget’ );

    function rets_landing_widget() {

    echo ‘<div id=”rets-sidebar”>’;
    dynamic_sidebar( ‘rets’ );
    echo ‘</div><!– end #rets-sidebar –>’;
    }

     

    I registered rets in the functions.php:

    genesis_register_sidebar( array(
    ‘id’ => ‘rets’,
    ‘name’ => __( ‘Rets’, ‘agentpress’ ),
    ‘description’ => __( ‘This is the disclaimer section.’, ‘agentpress’ ),
    ) );

    #21334

    cehwitham
    Participant
    Post count: 396

    Hi Joseph,

    Have you assigned any widgets to the Rets sidebar?

    Do you have a link to your site?

    Chris


    Twitter: cehwitham Web: cehwitham.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.