Remove the loop and add widget

Community Forums Forums Design Tips and Tricks Remove the loop and add widget

This topic is: not resolved

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  nickthegeek 1 year, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6151

    skuglin
    Participant
    Post count: 1

    Is there a way to remove the loop on the home page where the blogs are posting and replace it with a widgeted area in the Education theme?

    Thanks!

    #7024

    nickthegeek
    Keymaster
    Post count: 751

    you can add this to your home.php file to remove the loop remove_action( 'genesis_loop', 'genesis_do_loop' );

    Then you can add a widget area.

    http://nickc.co/sidebar

    #35966

    skuglin
    Participant
    Post count: 1

    Thanks Nick!  I removed the loop, added the widget area to my functions file.  I just get a blank white space on the home page now (I replaced the loop since the site is live).  I must not be adding the correct widgeted area because it doesn’t appear on the home page.  Do you have suggestions on how to get the new widgeted area to appear on the home page?  I just followed your tutorial :)

    [php]
    add_action( ‘genesis_after_content_sidebar_wrap’, ‘child_after_content_ad_sidebar’ );
    /** Loads a new sidebar after the content */
    function child_after_content_ad_sidebar() {

    echo ‘<div class="after-content-ad">’;
    dynamic_sidebar( ‘after-content-ad’ );
    echo ‘</div>’;

    }
    [/php]

    AND

    [php]
    genesis_register_sidebar( array(
    ‘id’        =&gt; ‘after-content-ad’,
    ‘name’      =&gt; ‘After Content Ad’,
    ‘description’   =&gt; ‘This is a sidebar that goes after the content.’,
    ) );
    [/php]

    I also added the this to the style sheet..

    [css]
    /* Ad Sidebar
    ———————————————————— */

    .after-content-ad {
    clear: both;
    margin: 0 auto;
    width: 728px;
    }
    [/css]

    I’m trying to add it to this site:  http://olivia.mn.us

    Thanks for any help, much appreciated!!

    #35970

    nickthegeek
    Keymaster
    Post count: 751

    what did the full home.php file look like with your edits?

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

You must be logged in to reply to this topic.