Forum Replies Created
-
AuthorPosts
-
ChrisMember
Cool! Thanks for the advice. I think I'll use the Genesis hook. The only advantage I thought about using the_content filter is that the link would be displayed in RSS feeds and with the Genesis hook I don't think it would be.
But I know there is another filter for the RSS content so I can just use that as well.
Chris Reed | [email protected] | http://www.chrisreedtech.com
ChrisMemberThanks. I tried that and with no page set it shows the latest blog posts instead of the front-page.php template. Which is weird because I thought the template hierarchy always looked for front-page.php first.
Chris Reed | [email protected] | http://www.chrisreedtech.com
ChrisMemberI don't think thats the problem. The function is getting called correctly, it is just returning the home page name instead of the posts for some reason.
Chris Reed | [email protected] | http://www.chrisreedtech.com
ChrisMemberThanks, but that didn't work either. I should have posted this function I have above in the front-page.php:
//* Add widget support for homepage if widgets are being used add_action( 'genesis_meta', 'minimum_front_page_genesis_meta' ); function minimum_front_page_genesis_meta() { if ( is_front_page() ) { //* Remove entry meta in entry footer and Genesis loop remove_action( 'genesis_loop', 'genesis_do_loop' ); //* Add Genesis grid loop add_action( 'genesis_loop', 'minimum_grid_loop_helper' ); //* Remove entry footer functions remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); //* Force full width content layout add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); }
Chris Reed | [email protected] | http://www.chrisreedtech.com
ChrisMemberContacted support and they suggested I add the CSS below. I'll give it a shot and see if that takes care of it.
.site-footer a,
.site-footer p {
-webkit-font-smoothing: subpixel-antialiased;
}
Chris Reed | [email protected] | http://www.chrisreedtech.com
ChrisMemberApril 22, 2014 at 9:33 am in reply to: Notice: Trying to get property of non-object in /wp-includes/post-template.php #101870ChrisMemberThanks again for the response.
I believe I did copy the code correctly--I just added the widget area to my front-page.php template instead of the featured-widgets.php because I only want the featured items to show up on my home page.
To test last night I did add a couple of other widgets (i.e. text or featured page) to the widget area and they displayed without generating the notice. So it is related to adding the featured post widget to the widget area to display the portfolio items. As soon as I drop in the featured post widget--even if I select no items to display I'll get the notice.
Thanks again for the help!
-Chris
functions.php:
https://www.dropbox.com/s/eoav3szct33ynb4/functions.phpfront-page.php:
https://www.dropbox.com/s/zd1ewum5qhkkhy3/front-page.php
Chris Reed | [email protected] | http://www.chrisreedtech.com
April 21, 2014 at 6:44 pm in reply to: Notice: Trying to get property of non-object in /wp-includes/post-template.php #101767ChrisMemberThanks Brad. I was actually using your tutorial for creating a widget area with hover effects for portfolio items:
I believe the code that is causing the crash is when I apply the markup to the widget area:
//* Add markup for portfolio widgets function minimum_featured_portfolio() { genesis_widget_area( 'featured-portfolio', array( 'before' => '<div id="featured-portfolio" class="featured-portfolio widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); }
Chris Reed | [email protected] | http://www.chrisreedtech.com
-
AuthorPosts