Title: CSS snippet not inserting
Last modified: March 3, 2024

---

# CSS snippet not inserting

 *  Resolved [msk5400](https://wordpress.org/support/users/msk5400/)
 * (@msk5400)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/css-snippet-not-inserting/)
 * I have 3 HFCM snippets configured, one of each type (HTML, Javascript and CSS).
   The HTML and Javascript snippets are inserting correctly into the page. However,
   the CSS snippet is not inserting. HFCM is inserting the pre- and post- comments
   into the page, but not inserting the actual CSS.
 * Thank you for your help!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcss-snippet-not-inserting%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * (@draftpress)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/css-snippet-not-inserting/#post-17481750)
 * Instead of using the CSS code editor directly, try wrapping your CSS rules within`
   <style>` tags. This is a common practice for inserting CSS styles into HTML documents,
   and it may resolve the issue you’re experiencing with HFCM.
 * Here’s how you can do it:
    1. Go to the snippet editor in HFCM.
    2. Instead of entering your CSS rules directly, add the following lines at the 
       beginning and end of your CSS code:
 * `<style> /* Your CSS rules go here */ </style>`
    -  This reply was modified 2 years, 3 months ago by [DraftPress Team](https://wordpress.org/support/users/draftpress/).

Viewing 1 replies (of 1 total)

The topic ‘CSS snippet not inserting’ is closed to new replies.

 * ![](https://ps.w.org/header-footer-code-manager/assets/icon-256x256.png?rev=2681303)
 * [Header Footer Code Manager](https://wordpress.org/plugins/header-footer-code-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer-code-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer-code-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer-code-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer-code-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [DraftPress Team](https://wordpress.org/support/users/draftpress/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/css-snippet-not-inserting/#post-17481750)
 * Status: resolved