Community Forums › Forums › Archived Forums › Design Tips and Tricks › Can't Display Alternate Featured Image Sizes
Tagged: featured image, genesis grid, No Sidebar
- This topic has 11 replies, 3 voices, and was last updated 8 years, 2 months ago by Brad Dalton.
-
AuthorPosts
-
January 23, 2016 at 11:52 am #177269pmcgilvrayMember
I am using the No-Sidebar theme and the Genesis Grid plugin. I created a custom thumbnail size - 340x340, selected it for Grid Loop teaser image size, but it will not display this image. In fact, I can change the selection to any other image size and I always get the same sized image displayed in the grid. I've regenerated thumbnails and cleared the cache.
Could the theme be overriding the image size? I am not even sure how to troubleshoot this one. I also noticed under Theme Settings > Content Archives that I have the box checked "Include the Featured Image" but there are no image size options there.
http://idoweddings.wpengine.com/portfolio/January 23, 2016 at 1:43 pm #177294emasaiParticipantI don't use Genesis Grid plugin so I cannot help you there. You can add to the featured image sizes in the functions.php file. Look for this and add your new image sizes below.
//* Add featured images add_image_size( 'ns-featured', 1024, 576, TRUE ); add_image_size( 'ns-single', 1024, 400, TRUE );
Need Website Customization or a Responsive CSS fix? Contact Me
Lynne emasai.comJanuary 23, 2016 at 1:46 pm #177295pmcgilvrayMemberI already have the image sizes defined, and the thumbnails generated, that's not the issue. The issue is that the theme seems to be overriding the custom post type thumbnail size.
January 23, 2016 at 1:48 pm #177296emasaiParticipantThat's why I suggested adding it into the theme's functions file rather than through a plugin. But I might be totally off.
Need Website Customization or a Responsive CSS fix? Contact Me
Lynne emasai.comJanuary 23, 2016 at 2:00 pm #177298pmcgilvrayMemberI added that to the theme's functions with same results.
When I change the theme to Genesis, the proper images are displayed. Somewhere within No-Sidebar lies the issue...
January 23, 2016 at 2:14 pm #177303emasaiParticipantI would suggest you open a support ticket with Studiopress. Sorry I was of no help...
Need Website Customization or a Responsive CSS fix? Contact Me
Lynne emasai.comJanuary 23, 2016 at 3:44 pm #177307Brad DaltonParticipantAre you referring to the archive-portfolio.php?
Normally, the image is added via custom code in this file which includes a size parameter you can easily change. The standard post iage is removed and added back using custom code uneffected by the Genesis > Theme Settings > Content Archive settings.
Also, the best way to display content in columns for a CPT archive is to use the code from the Executive pro child theme.
January 23, 2016 at 4:53 pm #177316pmcgilvrayMemberAs far as I can tell, there is no archive-portfolio.php file. I am using Custom Post Types UI to generate the CPT, and the Genesis Grid plugin to display the loop on the archive page. I should probably create the archive file and modify that.
January 23, 2016 at 5:36 pm #177320Brad DaltonParticipantYes, more flexible and easier to modify code in a file than a plugin.
Execitive Pro also includes the code for the portfolio CPT and archives.
January 23, 2016 at 5:48 pm #177321pmcgilvrayMemberCool, thanks Brad!
January 25, 2016 at 12:10 pm #177472pmcgilvrayMemberI ended up using a modified version of the Executive Pro archive-portfolio.php and a function for the grid layout (which I found on WP Sites after becoming a member! 🙂 )
One question - I am removing the featured image area with CSS using display:none and I know this isn't ideal, but
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
doesn't work for some reason. Is there a better way to accomplish this?January 25, 2016 at 12:21 pm #177475Brad DaltonParticipantYes, please send me login details and i'll fix it for you http://wpsites.net/wordpress-support/
-
AuthorPosts
- The topic ‘Can't Display Alternate Featured Image Sizes’ is closed to new replies.