-
-
My client’s blog has only one image per page, therefore I only use the featured image.
In the single article page I do NOT want the image to be cut, but to be displayed in its full size (with max-width 100% and height auto), so that if she posts a vertical image, it will show completely (she adds text to the images).
However, images are cut and I do not seem to be able to change this.It did not use to be like that: the first post we did when we started working o the website is OK: https://www.giuliaferrari.com/il-successo-attraverso-la-copertina-del-libro-e-labito-del-monaco/
[caption id="" align="alignnone" width="216"] correct image size[/caption]
Now, however, images are being cut:
[caption id="" align="alignnone" width="230"] Image being cut[/caption]
Can you tell me where I can change the way featured images are displayed in single post pages? I have looked at the documentation but they do not seem to apply.
Thank you! :)
-
Thank you Mihaila,
however, the second image I linked is certainly cut. It is a vertical photo, and the text is cut. See here
[caption id="" align="alignnone" width="489"] cut image[/caption]
this is the original image:
[caption id="" align="alignnone" width="489"] original image[/caption]
One question: in the loop-index.php (/wp-content/themes/specular/includes/view/blog) in line 135 there is this code to place the image in the “div class=media” section of the post:
<?php if(!is_single() || (is_single() && $cl_redata[‘use_featured_image_as_photo’]) ): ?>
<img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), ‘blog’, ‘url’)) ? />”
<?php endif; ?>Does that determine which image will be placed there?
Or weather it will insert the original image or the reduced version of the image? -
OK, I think I might have found the answer here: https://wpshout.com/adding-using-custom-image-sizes-wordpress-guide-best-thing-ever/
-
Hello,
DO you still need our help with the images? Let us know.
Best regards!
-
Hi Mihalia,
I have the same problem but I have not been able to solve . I would like to know how to keep the original image that is not cut into the single post.Regards :).
-
Hello Danycaz,
Normally the post images are optimized and this does not happen. Please fill in the necessary information on your extra information fields of your profile data. So we can give it a closer look.
Read this article for more information.
Best regards!
-
-
Hello Danycaz,
This is strange. It doesn’t happen on our side. Have you changed the images size according to the instructions shown on this aricle?
Have you made changes to your theme files?
Let us know.Best regards!
-
Hi
I made a change in the loop-index.php on line 135 deleting ‘blog’ for ” empty to charge the image with the original measures initially rise. Please tell me if it is a valid option.
Thanks
-
Hello,
I see that the change you’ve made fixed the issue. We recommend the solution included on the article i gave you, but the one you found it is also good. Thank you for sharing.
Let us know if you need further help.Best regards!
-
Thanks for answer. I think the case have been solve.
Best regards!
-
You must be logged in to reply to this topic.