Tagged: featured image, grid layout
-
AuthorPosts
-
March 9, 2015 at 9:06 pm #408449
Hi!
I have bought Enfold recently and I’m very satisfied with it since then. I like the Grid Layout style for blog, but in a new blog post that I have published today, the featured image is not displayed properly. You can see it here:
http://svadbenetorte.com/blog/
I don’t know what is the reason, cause the rest of the posts featured images are correctly displayed. Please help.March 9, 2015 at 9:46 pm #408489Hi crnaosa!
It looks like the first image is resized to 495 x 400 but all of the other images are displayed as fullsize. That is the problem correct?
Can you send us a WordPress login so we can take a closer look?
Cheers!
ElliottMarch 10, 2015 at 10:28 am #408706This reply has been marked as private.March 10, 2015 at 8:30 pm #409061Hi!
Alrighty, try opening up /enfold/config-templatebuilder/avia-shortcodes/postslider.php and change line 295 from this.
$thumbnail = get_the_post_thumbnail( $the_id, $image_size );
To this.
$thumbnail = get_the_post_thumbnail( $the_id, 'full' );
That should have them all open up in their original sizes instead of being resized by WordPress.
Cheers!
ElliottMarch 10, 2015 at 8:54 pm #409075Thanks a lot! Now it’s OK.
March 10, 2015 at 10:08 pm #409576But one more problem about the same issue is still present.
When I open blog post:
http://svadbenetorte.com/2015/03/09/handmade-aristocats-vintage-heart-mladenacka-torta/
the small preview image is not displayed properly, while in the other posts it is:
http://svadbenetorte.com/2015/02/11/svadbena-torta-sa-stilizovanim-macama/
http://svadbenetorte.com/2014/08/11/svadbena-torta-sa-slobu-i-bojanu-buket-i-zaljubljene-bubamare/etc.
March 11, 2015 at 10:21 am #409731Hi, have you read the follow-up in my previous reply? Can someone help?
March 11, 2015 at 12:58 pm #409789Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.single-post .single-small.with-slider .small-preview { background-color: transparent; }
and then regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/
Cheers!
YigitMarch 11, 2015 at 3:41 pm #409888Hi! I have done as you explained, but this resulted with the opposite effect.. Now all the thumbnails are the same fixed size, which I don’t want. I want them to be proportional to they original size.
I went to Settings>Media and unchecked the box that should be checked when you want them to be cropped to exact dimensions, but with no results.
March 12, 2015 at 6:43 am #410318Hey!
The maximum size of the small preview container is 180x180px. You can change that with this:
.single-post .single-small.with-slider .small-preview { width: 180px; height: 180px; }
Adjust the width and height then install this plugin: https://wordpress.org/plugins/simple-image-sizes/
Go to Settings > Media panel, look for the square thumbnail size. Set the Cropping parameter to “No”. You can also adjust the width and height if you want. Update then save changes. Regenerate the thumbnails after.
Best regards,
IsmaelMarch 12, 2015 at 4:02 pm #410518That’s it! Thanks a lot!
March 13, 2015 at 6:35 am #410853 -
AuthorPosts
- The topic ‘Blog Grid Layout problem’ is closed to new replies.