Title: Generate UCSS causing layout issue
Last modified: March 8, 2025

---

# Generate UCSS causing layout issue

 *  Resolved [Muhammad Junaid](https://wordpress.org/support/users/mj00712/)
 * (@mj00712)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/generate-ucss-causing-layout-issue/)
 * Hi,
   I hope you’re doing well. I am facing an issue: when I turn on Generate UCSS,
   it causes the website layout to break. However, when I turn it off, the website
   seems to work fine. How can I fix this issue?
 * Additionally, when I enable guest optimization, it also causes the layout to 
   break. How can I resolve this issue for guest optimization as well? Is guest 
   optimization necessary for guest mode, or will normal optimization apply to guest
   visitors?
 * Thanks.
 * Link to Layout Screenshot with UCSS enabled: [https://snipboard.io/PlmJ4Q.jpg](http://Screenshot)
 * Report number: JBPFDCHN
    -  This topic was modified 1 year, 3 months ago by [Muhammad Junaid](https://wordpress.org/support/users/mj00712/).
      Reason: Report Number Added
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgenerate-ucss-causing-layout-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Muhammad Junaid](https://wordpress.org/support/users/mj00712/)
 * (@mj00712)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/generate-ucss-causing-layout-issue/#post-18351421)
 * Update: I have switched to Generatepress theme and have added these in UCSS Selector
   Allowlist.
 *     ```wp-block-code
       .site-logo.toggled.main-navigation.menu-bar-item.menu-togglemobile-menu.navbar-toggle-wrapper.header-menu-sidebar.menu-item-nav-search svg.header-menu-sidebar-inner.builder-item.builder-item--nav-icon.site-footer.footer--row-inner.footer-content-wrap*, ::after, ::before.nv-index-posts.nv-page-title-wrap.layout-grid .content.blog-entry-title
       ```
   
 * Now I want to am I adding too much of these or is it ok?
    -  This reply was modified 1 year, 3 months ago by [Muhammad Junaid](https://wordpress.org/support/users/mj00712/).
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/generate-ucss-causing-layout-issue/#post-18351707)
 * [@mj00712](https://wordpress.org/support/users/mj00712/) it is ok to add those.
   Generator might not get all the required selectors(id, css)

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

The topic ‘Generate UCSS causing layout issue’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [litetim](https://wordpress.org/support/users/litetim/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/generate-ucss-causing-layout-issue/#post-18351707)
 * Status: resolved