Title: Optimising CSS code breaks the styling
Last modified: February 7, 2023

---

# Optimising CSS code breaks the styling

 *  Resolved [iarla](https://wordpress.org/support/users/iarla/)
 * (@iarla)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/optimising-css-code-breaks-the-styling/)
 * Hi,
 * I just installed and started using Autoptimize, and it seems to be working fine
   for everything except optimising CSS.
 * When I enable this feature, some of the text all renders over itself on the same
   line. I’ve tried different settings within “Optimize CSS” and it all has the 
   same result.
 * Just looking for help on how to optimize my css without breaking it,
 * Thanks,
 * Iarla
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foptimising-css-code-breaks-the-styling%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/optimising-css-code-breaks-the-styling/#post-16449532)
 * the problem is due to this CSS in `jevelin-theme-settings-css` ;
 *     ```
       body p {
         line-height: 0px;
       }
       ```
   
 * this CSS by default is excluded from CSS optimization because it is located in`
   wp-content/uploads`, but if you remove that exclusion from the CSS optimization
   exclusion list, the problem will very likely go away.
 * alternatively you could add the CSS in Appearance -> Customize -> Extra CSS;
 *     ```
       body p {
         line-height: unset !important;
       }
       ```
   
 * hope this helps,
    frank
 *  Thread Starter [iarla](https://wordpress.org/support/users/iarla/)
 * (@iarla)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/optimising-css-code-breaks-the-styling/#post-16449643)
 * That’s perfect, thanks Frank
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/optimising-css-code-breaks-the-styling/#post-16449657)
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂

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

The topic ‘Optimising CSS code breaks the styling’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/optimising-css-code-breaks-the-styling/#post-16449657)
 * Status: resolved