- This topic has 25 replies, 7 voices, and was last updated 6 years, 10 months ago by Leo.
-
AuthorPosts
-
September 12, 2016 at 9:45 am #225856Bruce
Hello Tom,
I was running into issues with the featured image displaying at full size on single posts. I found this and it works well.
But I am trying to super simplify this for clients (by using GeneratePress with GP Premium, and Beaver Builder), and if I use code, they would have to modify it if they wanted to change it.
Would you consider default featured image size controls in the Customizer?
Thanks!
September 12, 2016 at 9:55 am #225863TomLead DeveloperLead DeveloperYou can set the post image sizes in “Customize > Blog > Post Images”.
Does that not work for you?
Let me know π
September 12, 2016 at 10:01 am #225867BruceSeptember 12, 2016 at 10:04 am #225868TomLead DeveloperLead DeveloperIs the Blog add-on activated in “Appearance > GeneratePress”?
September 12, 2016 at 10:11 am #225869BruceYes, it is activated.
I should note that I do not have a Posts page set in Settings > Reading > Front Page Displays > A static page > Posts Page. I did try assigning it to a page, but it did not change anything. (Reason I am not using a static page for posts page is that I am using Beaver Builder for the posts page).
I suppose it could be another plugin conflicting, but I have relatively few running.
Any other ideas?
Thanks for looking at this…
September 12, 2016 at 10:12 am #225870TomLead DeveloperLead DeveloperAh, you need to be viewing the posts page (blog) for those settings to appear.
I’ve reversed this in the next version, but for now it’s necessary.
So you can temporarily add a blog, change the settings and then remove it.
September 12, 2016 at 10:26 am #225872BruceAhhh… well that does explain the missing Customizer controls.
But – when I change the setting in Customizer > Blog > Post Image, it does limit the size on the Blog archive page http://screencast.com/t/sVqiaDQQlIhP, but not on the single post page http://screencast.com/t/wRrWj8Laa1?
September 12, 2016 at 10:51 am #225879TomLead DeveloperLead DeveloperAh yea, there’s no global option for the single posts.
There is a cropping option inside the Page Header metabox, but that’s for individual pages.
I haven’t had a lot of people ask for a global option for single posts, but I’ll consider adding it as an option in the Customizer if I get a few more requests π
September 12, 2016 at 10:54 am #225880BruceAh… (lol), that explains that.
Just pretend my request is really 100 different people? π
It sure would be nice!
Thanks for working this out with me.
September 12, 2016 at 10:56 am #225881TomLead DeveloperLead DeveloperNo problem – I’ll definitely consider adding it, seems like a good idea π
October 9, 2016 at 2:13 am #233714ThierryHello,
I have the same problem, how i can do now ?
With GP hook and this code ?
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail(‘medium’);
}
?>but where i wirite this ?
October 9, 2016 at 9:50 am #233803TomLead DeveloperLead DeveloperSomething like this is all you need:
add_filter( 'generate_page_header_default_size','generate_change_default_image_size' ); function generate_change_default_image_size() { return 'medium'; }
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
October 9, 2016 at 11:06 am #233834ThierryGreat, thanks Tom π
October 9, 2016 at 11:12 am #233836TomLead DeveloperLead DeveloperYou’re welcome π
October 19, 2016 at 5:18 am #236918IsraelHi Tom, I love this theme.
Well, I also sign up to request the image size in single post. And if you could change the layout of the image on the title, the better.
Sorry, my English is translated by google π -
AuthorPosts
- You must be logged in to reply to this topic.