- This topic has 10 replies, 2 voices, and was last updated 11 months, 3 weeks ago by
Leo.
-
AuthorPosts
-
January 31, 2020 at 2:11 pm #1150858
Sonja
Hello,
on a test site i have developt a new design for this site, based on markter site. Now i have import the settings and copy the css, but the image sizes are not the same.
As you can see, on the page hero with wpshowpost, the sizes are not the same.
And also on the posts below the hero, the sizes are not correct. On the test site, the sizes shows as 300 x 169 px, but on the live site not.
What can be the problem?
January 31, 2020 at 5:06 pm #1150919Leo
StaffCustomer SupportHi there,
Have you tried the image options in WP Show Posts?
https://docs.wpshowposts.com/article/images-overview/#image-width-heightThe featured images have this CSS applied which is setting them to
max-width: 300px;
:
https://www.screencast.com/t/f1mRgGYkQwIt’s all working correctly from what I can tell. Perhaps it’s a caching plugin issue?
Can you make sure to clear and disable caching plugins every time a topic is opened and we need to take a look at it?
Thanks 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 1, 2020 at 1:28 am #1151125Sonja
Yes, i have tried image options in WP Show Posts. But this is no solution, because then the images are not responsive and it looks really ugly when smaller the browser.
The featured images do not all have the same size. You can see this, wehen you scroll down the site.
This is not a caching problemm, although i have clear the cache before posting.
February 1, 2020 at 10:07 am #1151479Leo
StaffCustomer SupportBut this is no solution, because then the images are not responsive and it looks really ugly when smaller the browser.
That’s just how cropping works unfortunately. A better solution which I always try to use is to make sure the images are the exact/ratio you want before uploading then you won’t have to play around with cropping.
The featured images do not all have the same size. You can see this, wehen you scroll down the site.
The featured images all have the max-width of
300px
which is what the CSS is doing – the height is set at auto so it varies a bit depends on the ratio of the original picture.You can try cropping those in the customizer again but will run into the same issue as WPSP 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 1, 2020 at 10:10 am #1151483Sonja
So do you mean, that this problem would be solved, if all featured images have the same size?
I wonder how my former theme (mh magazine theme) has done this. Because with this theme, all featured images were displayed in the same size.
If so, can a plugin like Regenerate Thumbnails help?
February 1, 2020 at 10:28 am #1151518Leo
StaffCustomer SupportSo do you mean, that this problem would be solved, if all featured images have the same size?
That would be my recommendation to achieve the layout you have in mind.
I did something similar for rumour:
https://gpsites.co/rumour/At least use the pictures that are the same ratio, so we can size them down using the
max-width
.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 1, 2020 at 10:31 am #1151522Sonja
And what´s your opinion on my other question? “If so, can a plugin like Regenerate Thumbnails help?”
February 1, 2020 at 10:33 am #1151523Leo
StaffCustomer SupportDon’t think that’s what the plugin is for but I’m not sure as I haven’t tried it.
Probably give it a shot if you think it might work for you?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 1, 2020 at 10:40 am #1151532Sonja
No, i don´t want to destroy something. I think this plugin can only set the correct sizes, if it can take them from the theme or from the media size settings in WP.
But i don´t know, if the plugin can read this correct size anywehere in the theme.
February 1, 2020 at 10:42 am #1151533Sonja
I mean there must be a way to do this. It can not be a solution, to go through hundreds of blogposts manually, to change the featured image, which also mus be editid.
February 1, 2020 at 1:52 pm #1151640Leo
StaffCustomer SupportWhat is the issue on mobile with cropping?
Can you show me?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.