I'm using the "recent-posts" short code on my frontpage, in a visual composer row.
Now the size of the thumbnail has changed to the landscape version and the image is cropped. Previously when the featured image was portrait, it would also display as portrait via the shortcode.
Hi,
I'm using the "recent-posts" short code on my frontpage, in a visual composer row.
Now the size of the thumbnail has changed to the landscape version and the image is cropped. Previously when the featured image was portrait, it would also display as portrait via the shortcode.
How can I change this and where ?
Thanks !
Hey Bjorn!
All the shortcode logic is inside "salient\nectar\tinymce\shortcode-processing.php" . By previously do you mean previous theme version ? .
Thanks
ThemeNectar Support Team
I'm not sure when the problem arose actually, I think it was after I updated to the previous release 4.0.3.
Is there a way to have the recent posts thumbnails being used, respecting the orientation and aspect of the image ?
Hey Bjorn!
Open the shortcode-processing.php file located in the nectar/tinymce directory and change this line:
to It should be located near line 1849Cheers :)
Hi,
Perfect this works for me..
What is the correct way to implement this when working with a child theme. Just copying the file to my theme folder doesn't work.
I guess that with the next update this mod will not work anymore ?
Thanks for your exceptional support :)
Hey Bjorn!
You will have to copy paste the whole recent post function into the child theme functions.php so the modified function is called first.
Thanks
ThemeNectar Support Team