About Sridhar Katakam
I am an independent WordPress web consultant with 10 years of experience in WordPress theme installation, customization, administration, maintenance, support, documentation, troubleshooting and PSD/design to WP.
Genesis and WordPress Tutorials
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
Wow! Thank you for the post Sridhar. You opened my eyes to all other possibilities with Genesis child themes. I am the one that asked you this question on the studiopress forum and I appreciate your taking time to make this happen. I will return to give update. Thanks again.
Just an update. The codes worked fine except that in Step 2 you need to retain the is_home. So I placed the codes in Step 3 within this tag:
if ( is_active_sidebar( ‘home-featured’ ) ) {
}
I never tried it without this tag because I didn’t think it will work. Thanks for your help.
Hi, I’ve been almost two days looking for an answer on how to do this and drew a blank til now, midnight, on day two! I’d just managed to achieve what I wanted by tweaking CSS alone. I’d tried variation on registering home left and right but not managed the action hook correctly. What I’ve done is reduce the slider width, its photos too, and the functions.php code on width. Then I added the slider to the original home top widget and dragged and dropped a regular text widget in the same home top area. With some CSS tweaking, I seem (by luck?) to have go my text right of slider, all ok.
Now, what I want to ask is if my workaround is ‘good to go’ or should I revert the CSS and start all over with your (more robust, hard coded) way of doing it?
Tnx Sridhar for you great tips here and in the forum.
An addendum, I just checked Outreach Pro code vs the version you have above and they’ve changed things. They’ve lumped home-top (which you name home-featured) along with home-bottom, so that’s why I got stuck splitting things up as the code in front-page.php reads like this:
/**
* Add widget support for homepage. If no widgets active, display the default loop.
*
*/
function outreach_home_genesis_meta() {
if ( is_active_sidebar( ‘home-top’ ) || is_active_sidebar( ‘home-bottom’ ) ) {
//* Force full-width-content layout setting
add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_full_width_content’ );
//* Add outreach-pro-home body class
add_filter( ‘body_class’, ‘outreach_body_class’ );
//* Remove breadcrumbs
remove_action( ‘genesis_before_loop’, ‘genesis_do_breadcrumbs’ );
//* Remove the default Genesis loop
remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
//* Add home top widgets
add_action( ‘genesis_loop’, ‘outreach_home_top_widgets’ );
//* Add home bottom widgets
add_action( ‘genesis_before_footer’, ‘outreach_home_bottom_widgets’, 1 );
}
}
function outreach_body_class( $classes ) {
$classes[] = ‘outreach-pro-home’;
return $classes;
}
function outreach_home_top_widgets() {
genesis_widget_area( ‘home-top’, array(
‘before’ => ”,
‘after’ => ”,
) );
}
So I was confuses as to how to disentangle home-top from bottom with all these other bits involved. Is my workaround good or should I pour over this lot?!! Any help welcome as this is an issue another lady has currently posted on the Forum too, and we’d both drawn a blank. Tnx.
Hi Sridhar,
I think I am going to have to create new widget areas somehow as I need to style and have full control over that slider + widget area in Outreach. If I simply create new ‘home-top-left’ and ‘home-top-right’ widget areas and some CSS etc for it, will it simply override the original code (if I don’t delete it) as that original widget area won’t be active so I needn’t worry about deleting it? Basically, I need slider 760px or so, and the right widget area ‘home-top-right’ to be able to carry two widgets – text box and the enews.
Tnx for any pointers! I am sure the code has changed though since your original post – the Pro version came out since? I have Pro.
I am working on this in my test site as we speak. Naturally, a tutorial will follow. Hang on.
Really kind Sridhar…am I right the Outreach code changed? |Tnx
Yes. When I wrote this post there was only one version, Outreach. Now it is Outreach Pro with different code.
Done. http://www.sridharkatakam.com/home-top-left-right-widget-areas-outreach-pro/
[…] the past I wrote a tutorial on how to split Home Featured widget area into Left and Right sidebars in Outreach. Since then the Pro version of the theme has been released by StudioPress and that tutorial no […]