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.
This is awesome! Thanks so much! Are you able to update the code above so that instead of inserting each page individually, you could just add the widget, tick the pages you want to show and how many you want to show and also allow it to randomly select the pages?
If you are familiar with Views plugin, you should be able to create a custom View with your desired filters like what Pages to show, how many to show etc. and use its widget instead of multiple ‘Genesis – Featured Page’ widgets.
Sridhar,
Thank you! I had an issue where the ‘featured pages’ were aligning vertically instead of horizontally. I used the CSS you provided and now the featured images align horizontally.
Thank you so much for posting this. I would have never thought to use the “nth-of-type.” This particular use isn’t for a portfolio page, but it’s the same principle. I spent several hours tweaking the CSS for the featured page widget (it’s easier for clients to manage when I use that), but it still wasn’t working well with my responsive theme. This was much better. I appreciate you sharing it.
Hi Sridhar
can we use this code for custom post types?
I use a custom post type but on using Genesis Featured WIdget Amplified those are aligning vertically.
If its not too much, could you suggest a workaround?
Can you provide the URL of the page where you have the vertically lined up widgets?
blog.ficci.com but that would be under maintenance mode right now.
If I use this code they align in a grid but I know this is a wrong way to do it
function be_archive_post_class( $classes ) {
// Don’t run on single posts or pages
if( is_singular() )
return $classes;
$classes[] = ‘one-third’;
global $wp_query;
if( 0 == $wp_query->current_post || 0 == $wp_query->current_post % 3 )
$classes[] = ‘first’;
return $classes;
}
add_filter( ‘post_class’, ‘be_archive_post_class’ );
If you can make the site live and let me know I can take a look and advise with the needed CSS.
just made it live for you, please reply fast. Will revert to Maintenance as soon as you are done.
You may set it back in maintenance now. I have the webpage open and am working in Firebug.
Thanks.
Add this in style.css: http://pastebin.com/raw.php?i=HsXcxYiE
Many Thanks Sridhar, just checked, it works.
This is great; thank you. Question: What changes would need to be made if you wanted to feature 12 pages instead of 6 pages?
The code above worked as is with multiple pages. Thanks again!
Sridhar Katakam, what will i need to do to accomplish the same for the Agency Pro child theme? this would be for the home middle widget, i want 6 featured pages rather than posts.
Follow http://www.sridharkatakam.com/show-featured-pages-home-bottom-section-similar-featured-posts-agency-pro/.
You will need to replace all instances of “.home-bottom” in the suggested CSS with “.home-middle”
Great tutorial! How can I add a header text to this section? I want it to say “Portfolio” at the top.
In front-page.php replace
http://pastebin.com/raw.php?i=M77wAqp5
with
http://pastebin.com/raw.php?i=SREA9rFt
Will this method work on the new Ambiance Pro theme as well?
http://demo.studiopress.com/ambiance/
Sridhar, thank you so much. This is exactly what I was looking for. I emailed Studiopress support and they sent me a link to this article.
Many, many thanks!
Sridhar,
I’ve copied the CSS into the style.css file. The images align properly, but the title under the image is just a small font. It does not look the same as the larger H2 font with I use featured posts. Did I miss something?
Hi Caleb,
I have the same issue and got around it by commenting out/removing the .featuredpage h2 a declaration in the css 🙂
No need to do that. In the .featuredpage h2a section of Sridhar’s CSS code change font-size: 1.125 to 1.8rem. This might have been a typo on his part. Which is the equivalent of the font-size: 18px just above. The section now should read:
.featuredpage h2 a {
font-size: 18px;
font-size: 1.8rem;
Hi,
I just came to this post from the Studiopress forum. I am hoping you can help me.
I have the Modern Portfolio Pro theme and would like 3 widget areas in the portfolio section.
One is an About PAGE and the other two are categories of blog posts (Featured post widget?).
Currently they are showing one on top of the other, but I would like them inline.
I suspect this code is similar to what I need, but not sure about the exact code for what I’m trying to do.
I appreciate any help.
Thanks!
Sridhar,
Will this method work on the new Ambiance Pro theme as well?
http://demo.studiopress.com/ambiance/
Any ideas?
Thanks,
Dominic