- This topic has 25 replies, 7 voices, and was last updated 3 years, 8 months ago by
Leo.
-
AuthorPosts
-
September 12, 2016 at 9:45 am #225856
Bruce
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 #225863Tom
Lead DeveloperLead DeveloperYou can set the post image sizes in “Customize > Blog > Post Images”.
Does that not work for you?
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 12, 2016 at 10:01 am #225867Bruce
September 12, 2016 at 10:04 am #225868Tom
Lead DeveloperLead DeveloperIs the Blog add-on activated in “Appearance > GeneratePress”?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 12, 2016 at 10:11 am #225869Bruce
Yes, 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 #225870Tom
Lead 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 12, 2016 at 10:26 am #225872Bruce
Ahhh… 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 #225879Tom
Lead 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 12, 2016 at 10:54 am #225880Bruce
Ah… (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 #225881Tom
Lead DeveloperLead DeveloperNo problem – I’ll definitely consider adding it, seems like a good idea π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 9, 2016 at 2:13 am #233714Thierry
Hello,
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 #233803Tom
Lead 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/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 9, 2016 at 11:06 am #233834Thierry
Great, thanks Tom π
October 9, 2016 at 11:12 am #233836Tom
Lead DeveloperLead DeveloperYou’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2016 at 5:18 am #236918Israel
Hi 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.