Title: css change
Last modified: March 25, 2024

---

# css change

 *  [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/css-change-5/)
 * how can update these css to the latest version?
 *     ```wp-block-code
       .archive .cm-featured-image {
       	aspect-ratio: 800/600;
           }
       body.single-post div.featured-image {
        display: none;
       }
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcss-change-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * (@barsha04)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/css-change-5/#post-17528614)
 * Hi [@sacconi](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       .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/](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
 *  Thread Starter [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/css-change-5/#post-17528634)
 * the code is not working: [https://liciniosacconi.it/arte/fotomontaggi/donne/](https://liciniosacconi.it/arte/fotomontaggi/donne/)
 *  [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * (@barsha04)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/css-change-5/#post-17538955)
 * 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](https://prnt.sc/_9rFlcVLYBxh) After [https://prnt.sc/ZPEBhJYAdFf-](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
 *  Thread Starter [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/css-change-5/#post-17539718)
 * I dont want to add a white space, I want to change the ratio of the pics, not
   of the container of the pics
 *  [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * (@barsha04)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/css-change-5/#post-17539891)
 * 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
 *  Thread Starter [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/css-change-5/#post-17540438)
 * I got the result using
 *     ```wp-block-code
       .archive .cm-featured-image img{
       	aspect-ratio: 800/600;
           }
       ```
   
 *  [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * (@barsha04)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/css-change-5/#post-17559284)
 * 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

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘css change’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/colormag/4.1.2/screenshot.jpg)
 * ColorMag
 * [Support Threads](https://wordpress.org/support/theme/colormag/)
 * [Active Topics](https://wordpress.org/support/theme/colormag/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/colormag/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/colormag/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 7 replies
 * 2 participants
 * Last reply from: [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/css-change-5/#post-17559284)
 * Status: not resolved