Hi @sacconi,
Thanks for reaching us,
The Modified CSS code that works with the latest version of the ColorMag theme for managing the aspect ratio of image is provided below:
.archive #cm-content .cm-layout-2 .cm-featured-image {
aspect-ratio: 800 / 600;
}
However, for another code to remove the feature image from a single post page, you can use the option to disable the image. Here is the link: https://docs.themegrill.com/colormag/docs/manage-featured-image-in-single-post/
Let me know if this helps you or not and I will get back to you.
Regards
Hi sacconi,
Thanks for reaching back,
The code is working fine on your end. For your confirmation, please check the two screenshots with changes before and after adding the code.
Before https://prnt.sc/_9rFlcVLYBxh After https://prnt.sc/ZPEBhJYAdFf-
I hope you are clear. However, if you are refeering to some other changes using the code, let me know, and I will provide you with the right code to fix it.
Regards
I dont want to add a white space, I want to change the ratio of the pics, not of the container of the pics
Hi sacconi,
Could you please try adding the following CSS code once and check if it helps you or not!
.archive #cm-content .cm-layout-2 .cm-featured-image img{
aspect-ratio: 800/600;;
}
Let me know the updates after adding the code and I will get back to you.
Regards
I got the result using
.archive .cm-featured-image img{
aspect-ratio: 800/600;
}
Hi sacconi,
Glad to hear that it has been solved. Do let us know of any confusion or issues and we will help you further.
Regards