Forum Replies Created
-
AuthorPosts
-
sbrodyMember
@Anita - I want to create a template just for category pages - I have a separate one for my blog listing page. It looks like category.php will do the trick
sbrodyMemberAh brilliant thanks - I was chasing round for a special Genesis way of doing things!
sbrodyMemberHi Anita
I've created a page_archive.php for my category pages and placed it in the genesis-sample root folder but it's not being picked up at all... I've got the latest version of genesis-sample and genesis framework - do you have any idea what might be going wrong?
ThankssbrodyMemberWell, this has been a useful learning experience!
Thanks again.sbrodyMemberThanks for your suggestions and help Lee and Marcy.
I deactivated all my plugins but that didn't work.
I then went through all the elements in the Genesis Sample functions.php and found this element was the crucial one://* Add HTML5 markup structure
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );Once I added this, the images now appear.
I'm not sure I quite understand why html5 support is needed to load a featured image but I'm pleased I've found the solution!
Thanks again
sbrodyMemberOk - I have activated Genesis Sample Theme and the images appear - so it must be something to do with the child theme I created... I've gone back to the child theme functions.php and stripped it back so it just contains this - is there anything obviously wrong with it?
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles',1 );
function enqueue_parent_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}add_action( 'genesis_entry_header', 'custom_single_featured_image', 7 );
function custom_single_featured_image() {if ( is_singular(array( 'post', 'page' ) ) && has_post_thumbnail() ) {
// Use featured image at kqp-page-image-size for blog
echo genesis_image( array(
'size' => 'large',
'attr' => array(
'class' => 'aligncenter entry-image' ) ) );
}
}sbrodyMemberI've tried both of those pieces of code and neither worked - I'm now working on this site btw http://simtest.uk/blogging/why-do-you-practice/
ThankssbrodyMemberDo you mean on the blog listing page or on individual blog posts? I'm still not seeing them on individual pages.
Thanks
SimsbrodyMemberThanks again for your help.
Unfortunately, images are still not appearing on either posts or pages - I've tried both versions of the code.
It's left me scratching my head. I'm wondering if a plugin or other setting might be affecting it - although I only have a few very standard plugins in use.
sbrodyMemberThanks for your help Marcy.
The content on the blog page now works correctly.
Unfortunately the blog post images are still not appearing - I can see no logical reason why not. I'm pretty new to Genesis but it's frustrating that it is so difficult to do something so basic. Perhaps it's not for me!
-
AuthorPosts