October 9, 2013 at 10:28 pm #66060
I stumbled across the new agency pro theme today and love it. Since I would like to use it for an Agency (go figure) it would be ideal to have the home middle image grid point to pages NOT posts. Problem is, the Featured Posts widget uses a post category so one occurrence of the widget can paint all 6 posts into the page (as seen in the demo). The featured page widget by contrast has one page per occurrence of the widget. So, if you put in >1 Featured Pages, the images don’t grid but line up vertically as one image with a bunch of white space.
How do I modify the functions.php to make this work on pages instead of posts?October 10, 2013 at 1:48 am #66086October 10, 2013 at 2:05 am #66087
@Sridhar I was just trying to figure out how to do what you explained… Thank you! Will it also work the same if you use a text widget instead of a page or post?
@ Sridhar Will the way you explained here: http://sridharkatakam.com/replace-tagline-eleven40-pro-widget-area/ work for the Agency Pro to add a widget right after the header on top of the Top Page?
Thanks!October 10, 2013 at 3:14 am #66093
1) Yes. If the widgets do not have the same height approximately and do not appear nicely in the grid, then you will need to play with min-height value in CSS.
October 10, 2013 at 3:51 am #66094
@Sridar #1 worked like a charm (I put it on the middle page), adding either pages, text or any other widget. The only problem (which makes sense since they are not posts) is that it doesn’t have that nice looking title on top of the page so it doesn’t look as good as the demo. It also doesn’t separate the middle and bottom pages if none of them includes posts.
I’ll be trying #2 now to add the top widget under the header! You are a genius sir! Thank you so much!October 10, 2013 at 4:40 am #66101October 10, 2013 at 5:15 am #66107
@Sridhar here it is: http://www.alexiourealty.com/
I can’t also get the #2 right… Whatever I put on that widget area (even text) below the header it aligns to the left not even the title centers and I can’t get the light background that I see on the picture you have on your “How to” post.October 10, 2013 at 5:24 am #66108
@Sridhar Never mind the widget area… It works great! I changed the “home-future” name to something else and I forgot to also change it on the CSS.October 10, 2013 at 6:51 am #66112October 10, 2013 at 7:45 am #66123
Thanks for the help, you always deliver.
In the time since I posted this last night and my coffee this morning it appears others have been hot on the trail so it seems this is a much desired feature. That said, my vision was to have the image grid (using page’s featured images) and text appear on mouse over. Will your solution address that? My long term goal is then to replace the post section with Woo Commerce products or to at least create a new div containing those products. But for now I’m hoping to get the image grid worked out.
Before I dive into this code, can you tell me if what I want to accomplish will be met with this example?October 10, 2013 at 8:14 am #66130
Before I dive into this code, can you tell me if what I want to accomplish will be met with this example?
No. What you see in the screenshot is what you get with my article.
When I get time, I will work on what you want.
October 10, 2013 at 8:25 am #66133
Thanks. It appears that this whole tricky overlay (nice work that it is) is accomplished with CSS. I can’t find anything in the functions or front-page that makes the magic work. I’ll mess around with it today. Thanks for your continued help. This is why I like the Genesis Community!
CheersOctober 10, 2013 at 10:07 am #66142
I was able to replicate the demo using a text widget and following the HTML of the demo page. There will be some styling because the default background on the text widget is white but still, it work initially. Since the demo uses posts, the code uses schema.org tagging to indicate the content as blog posts. If I use this with pages I’ll need to find the equivalent for pages. It also might make sense to copy the CSS elements and make new ones that are page specific and not for posts but still on the surface its working. CSS is a wonder. Would love your insights into how to make this css clean for pages.October 10, 2013 at 1:19 pm #66175
If you are still following this I have a question. Instead of fighting all this CSS, is it possible to make a custom post type that is only used for the home page, and use the build in functionality of featured-post? The only hangup I can see is blocking those posts from the blog and archive and somehow re-route the mapping to the actual page. Perhaps this just causes as many problems.
Thoughts?October 11, 2013 at 5:41 am #66236
jbculp, did you have any luck figuring it out? I want to accomplish the same thing as you but haven’t had success yet.
The topic ‘Agency Pro Home Middle – Pages Possible?’ is closed to new replies.