Forum Replies Created
-
AuthorPosts
-
casm
MemberThanks for responding Dave.
I have fixed the functions.php with the help of Studiopress Support and have added code to the home.php and now the widget is working but won't show up on the home page.
Here's the code I used on the home.php
<?php
add_action( 'genesis_meta', 'streamline_home_genesis_meta' );
/**
* Add widget support for homepage.
*
*/
function streamline_home_genesis_meta() {if ( is_active_sidebar( 'home-featured-1' ) || is_active_sidebar( 'home-featured-2' ) || is_active_sidebar( 'home-featured-3' ) ) {
add_action( 'genesis_before_content_sidebar_wrap', 'streamline_home_loop_helper' );
}
}
/**
* Display widget content for home featured sections.
*
*/
function streamline_home_loop_helper() {if ( is_active_sidebar( 'home-featured-1' ) || is_active_sidebar( 'home-featured-2' ) || is_active_sidebar( 'home-featured-3' ) ) {
echo '<div id="home-featured">';
echo '<div class="home-featured-1">';
dynamic_sidebar( 'home-featured-1' );
echo '</div><!-- end .home-featured-1 -->';echo '<div class="home-featured-2">';
dynamic_sidebar( 'home-featured-2' );
echo '</div><!-- end .home-featured-2 -->';echo '<div class="home-featured-3">';
dynamic_sidebar( 'home-featured-3' );
echo '</div><!-- end .home-featured-3 -->';echo '</div><!-- end #home-featured -->';
}
}
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'custom_widget' );
function custom_widget() {
genesis_widget_area( 'home-bottom', array( 'before' => '<div
id="home-bottom" class="home-bottom widget-area">' ) );
}genesis();
And here's the CSS I used (I feel like I'm feeling my way in the dark here... just copied this from another blog that has done this).
/* Home Bottom Widget Area
------------------------------------------------------------ */
.home-bottom .post-info{
overflow: hidden;
margin-right; 5px;
padding: 0 0 25px;
width: 100%;
}What I want is for the home-bottom widget area to show instead of the blog posts.
If you can help me figure out how to do that, I would really appreciate it.
-
AuthorPosts