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.
Hi Sridhar,
It worked fine for me except for the fact that it shows on every page/post. I need this to show only on homepage. How would I do that?
Thanks in advance. Pedro
Try changing
if (is_active_sidebar( ‘featured’ )) {
to
if ( is_active_sidebar( ‘featured’ ) && is_home() ) {
If the above doesn’t work i.e., if you have a static Page as front page, then try
if ( is_active_sidebar( ‘featured’ ) && is_front_page() ) {
[…] you really need that ‘Newsletter’ widget, have a peek at how Sridhar Katakam does it with the Eleven40 Pro […]
didnt work on my theme
I see.
Thanks for a great post, Sridhar.
How can I make it with background color to expand to full width like the header?
Thanks for your help,
Suti
Just set a background for “.featured” like this:
.featured {
background: #333;
}
Thanks, I will try it later tonight.
can I ask how to remove this on a page by page basis
Do you want the Featured widget section to appear on most Pages but not few or the other way round?
Sridhar,
I am using Genesis Extender and have created a widget that appears after the header and features the responsive slider. I would like it to appear on just the home page. I have a landing page that is set to ‘static’ in the reading settings and have used the is_not_front _page conditional. The slider does not appear on the landing page (that’s what I want), but it appears on all the other pages, I just want it to show on one selected page and exclude the others. The is_not_page conditional with an array doesn’t work, all pages just go white.
i love this post…. the codee to make it appear only in the front page works great for me…. now my concern is how can one make HOMEPAGE to show only category posts… like dividing it
It worked very well! But there is a lot of padding around the banner that I have. How can I do the padding less?
/Jovan
Excellent tutorial! Would you be able to instruct me on how to add this widget above the main Content area of the homepage (the center column)? it seems like the only area of the mainpage that does not include a widget area.
Thank you
Thank you for sharing such a great tutorial, Sridharkat!
I need to add a colored round box around the text in my widget that I’ve added below header according to your tutorial, and also, would love if a horizontal custom menu can be added below my text widget here. Can you please let me know if this is possible?
How to place 3 widgets side by side inside Featured Section similar to Footer Widget?
Could you please do a tutorial on how to remove the separator lines in eleven40 pro. I mean the lines that separate the page for example, between the main content and the sidebar…
I was trying to modify the child theme functions.php file by adding this code:
genesis_register_sidebar( array(
‘id’ => ‘home-featured’,
‘name’ => __( ‘Home Featured’, ‘eleven40’ ),
‘description’ => __( ‘This is the home featured section.’, ‘eleven40’ ),
) );
/** Add the home featured section */
add_action( ‘genesis_before_content_sidebar_wrap’, ‘eleven40_home_featured’ );
function eleven40_home_featured() {
if (is_active_sidebar( ‘home-featured’ )) {
genesis_widget_area( ‘home-featured’, array(
‘before’ => ”,
‘after’ => ”
) );
}
else {
genesis_seo_site_description();
}
}
I added that code below this line of code in the functions.php section:
add_action( ‘genesis_before_content_sidebar_wrap’, ‘genesis_seo_site_description’ );
As soon as I did my screen went white and I no longer can access my website even through the wordpress admin panel.
I have minimal web design experience so I am unsure what I can/should do at this point to correct this error.
Browser: Safari
Operating System: Yosemite 10.10.1
Hello,
I do not have much experience with web creation. My website is http://bodybuildingyearone.com
I am currently using the eleven40 Pro child theme for Genesis Theme.
I was trying to add a widget section below the header. I was following this tutorial: http://sridharkatakam.com/add-widget-section-header-eleven40-pro/#comment-316672
I do not know anything about web programming but have made a few small changes to my site following tutorials before.
I tried adding this section of code to the functions.php file of the child theme:
genesis_register_sidebar( array(
‘id’ => ‘featured’,
‘name’ => __( ‘Featured’, ‘eleven40’ ),
‘description’ => __( ‘This is the featured section.’, ‘eleven40’ ),
) );
/** Add the home featured section */
add_action( ‘genesis_after_header’, ‘eleven40_featured’ );
function eleven40_featured() {
if (is_active_sidebar( ‘featured’ )) {
genesis_widget_area( ‘featured’, array(
‘before’ => ‘ ”
) );
}
}
As soon as I did the page I was on went all white. I tried refreshing but that did not work. My website now shows up as a blank page and I am also unable to access my wordpress admin profile as well. Every page of the website is just blank.
I am unsure what steps I can take to correct my mistake so any help is greatly appreciated.
Hi Sridhar,
Thanks for posting the code. Works flawlessly. The only point is that I want to show it on all static pages. Can you suggest a hack.
Regards,
Faisal Khan