Title: Invalid CSS rendered causing styling issue
Last modified: January 12, 2022

---

# Invalid CSS rendered causing styling issue

 *  [Kevin](https://wordpress.org/support/users/wp18nkevin/)
 * (@wp18nkevin)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/invalid-css-rendered-causing-styling-issue/)
 * When plugin generate menu css in the header, css style was sanitized. Character‘
   >’ was rendered as ‘&gt;’ and making it invalid. Anyone facing same issue?
 * Example:
    `<style>.wp-megamenu-wrap > ul.wp-megamenu > li.wpmm_mega_menu ...`
   is rendered as `<style>.wp-megamenu-wrap &gt ; ul.wp-megamenu &gt ; li.wpmm_mega_menu...`
 * note: added space in above example to prevent HTML entities being decoded.
    -  This topic was modified 4 years, 4 months ago by [Kevin](https://wordpress.org/support/users/wp18nkevin/).
    -  This topic was modified 4 years, 4 months ago by [Kevin](https://wordpress.org/support/users/wp18nkevin/).
    -  This topic was modified 4 years, 4 months ago by [Kevin](https://wordpress.org/support/users/wp18nkevin/).
    -  This topic was modified 4 years, 4 months ago by [Kevin](https://wordpress.org/support/users/wp18nkevin/).

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

 *  [Md. Jobayer Al Mahmud](https://wordpress.org/support/users/jobayertuser/)
 * (@jobayertuser)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/invalid-css-rendered-causing-styling-issue/#post-15248575)
 * Hello [@wp18nkevin](https://wordpress.org/support/users/wp18nkevin/),
 * Where are you putting your CSS by the way. If you want to use extracts then write
   only CSS code in Appearance > Customize > Additional CSS. Don’t need to add a
   style tag here.
 *  Thread Starter [Kevin](https://wordpress.org/support/users/wp18nkevin/)
 * (@wp18nkevin)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/invalid-css-rendered-causing-styling-issue/#post-15264698)
 * Hi [@jobayertuser](https://wordpress.org/support/users/jobayertuser/)
 * No, the CSS is generated by plugin itself based on what I have configured in 
   Appearance > Menu > clicking the “WP Mega Menu” icon on menu item. ie: setting
   dropdown menu width.
 *  [Md. Jobayer Al Mahmud](https://wordpress.org/support/users/jobayertuser/)
 * (@jobayertuser)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/invalid-css-rendered-causing-styling-issue/#post-15281705)
 * Hello [@wp18nkevin](https://wordpress.org/support/users/wp18nkevin/),
 * Can you please show me screenshots? I am confused where actually the problem 
   you are getting.
 *  [stuartcr](https://wordpress.org/support/users/stuartcr/)
 * (@stuartcr)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/invalid-css-rendered-causing-styling-issue/#post-15370992)
 * yo i’m having the same issue.
 * [https://www.clickreturn.co.uk/wp-content/uploads/2022/02/Screenshot-2022-02-15-at-00.33.03.png](https://www.clickreturn.co.uk/wp-content/uploads/2022/02/Screenshot-2022-02-15-at-00.33.03.png)
 * i have tested this on a few website that i have made. i even did a fresh install
   yesterday, same problem, the CSS is broken.
 * the CSS is being create from the plugin.
 * here is my post (yes the odd code got render in the original post)
    [https://wordpress.org/support/topic/css-broken-after-coping-website/](https://wordpress.org/support/topic/css-broken-after-coping-website/)
    -  This reply was modified 4 years, 3 months ago by [stuartcr](https://wordpress.org/support/users/stuartcr/).
 *  Thread Starter [Kevin](https://wordpress.org/support/users/wp18nkevin/)
 * (@wp18nkevin)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/invalid-css-rendered-causing-styling-issue/#post-15378041)
 * Hi [@stuartcr](https://wordpress.org/support/users/stuartcr/) , I’ve contacted
   Themeum and it seems they are aware of the issue and asked to wait for next update.
   However they haven’t issue any plugin update so far. I’m still waiting.
 *  [Md. Jobayer Al Mahmud](https://wordpress.org/support/users/jobayertuser/)
 * (@jobayertuser)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/invalid-css-rendered-causing-styling-issue/#post-15406802)
 * Hell [@wp18nkevin](https://wordpress.org/support/users/wp18nkevin/) , [@stuartcr](https://wordpress.org/support/users/stuartcr/),
 * We are still working on this please give us some time to fix.
 *  Thread Starter [Kevin](https://wordpress.org/support/users/wp18nkevin/)
 * (@wp18nkevin)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/invalid-css-rendered-causing-styling-issue/#post-15796943)
 * hi [@jobayertuser](https://wordpress.org/support/users/jobayertuser/) , May I
   know if there is planned update for this? Due to this bug I can only stay with
   version 1.4.0 which has few vulnerabilities.

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

The topic ‘Invalid CSS rendered causing styling issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-megamenu/assets/icon-256x256.jpg?rev=2451874)
 * [WP Mega Menu](https://wordpress.org/plugins/wp-megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-megamenu/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Kevin](https://wordpress.org/support/users/wp18nkevin/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/invalid-css-rendered-causing-styling-issue/#post-15796943)
 * Status: not resolved