Forum Replies Created
-
AuthorPosts
-
CelesteMember
Thanks so much Brad! The last snippet on your page worked.
CelesteMemberHi Lauren, I apologize for my ineptitude, but can you direct me on how to add your code to the blog template (it is not a template I made, it is the standard Genesis blog template)? I copied page_blog.php into my child theme folder, but I am unclear on how to modify Genesis page templates. It is very different than the standard WordPress page templates I've worked with before. I am only assuming page_blog.php is the right file to edit?
Thanks again,
CelesteCelesteMemberHi Stefanie, thanks for your response. I am trying to do the latter: add one specific image to the top of the blog page. I am currently using the following function to display the featured image at the top of posts and pages, but it is not showing up on the blog page:
//* Add featured image to posts and pages
add_action( 'genesis_entry_header', 'single_post_featured_image', 5 );
function single_post_featured_image() {
if ( ! is_singular() )
return;$img = genesis_get_image( array( 'format' => 'html', 'size' => genesis_get_option( 'image_size' ), 'attr' => array( 'class' => 'post-image' ) ) );
printf( '%s', get_permalink(), the_title_attribute( 'echo=0' ), $img );}
I assume 'single_post_featured_image' does not apply to the blog page (my assumption could be wrong). I have searched forums and internet for the exact function I need but haven't found anything.
Thanks,
CelesteCelesteMemberThanks so much Andrea! I searched for plugins and did not come across Ubermenu. It looks perfect.
I have some ideas for the home page. I'll come back if I have trouble with it.
Thanks again for your input!
-
AuthorPosts