Title: Plugin Strips CSS Attributes with Shortcodes
Last modified: April 24, 2017

---

# Plugin Strips CSS Attributes with Shortcodes

 *  Resolved [boombuzzer](https://wordpress.org/support/users/boombuzzer/)
 * (@boombuzzer)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/plugin-strips-css-attributes-with-shortcodes/)
 * Hi,
 * I don’t know if I am doing something wrong but when I inject a shortcode it strips
   the CSS Attributes assigned to the function. Basically meaning that for example:
   I have a search that I am injecting in the header via shortcode… It looks perfect
   when I assign the shortcode on pages but as soon as I inject the code it is completely
   bare and I have to then re-style it.
 * I use shortcodes a lot and many times a day so styling it every time is a bit
   of a hassle for me for obvious reasons, and that the fact is that it is already
   styled.
 * Please advise if I may be missing something, I know my way around WordPress but
   I do still have a lot to learn, so any help would be appreciated.
 * Kind Regards

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/plugin-strips-css-attributes-with-shortcodes/#post-9060482)
 * Sorry but i can’t really understand the problem. I need to see the problem in
   your blog, understand how you’re styling the shortcodes (you should add the style
   in your theme or in the head of a page).
 * The plugin just adds “things” in the page head.
 * Stefano.

Viewing 1 replies (of 1 total)

The topic ‘Plugin Strips CSS Attributes with Shortcodes’ is closed to new replies.

 * ![](https://ps.w.org/header-footer/assets/icon-256x256.png?rev=3452717)
 * [Head, Footer and Post Injections](https://wordpress.org/plugins/header-footer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/plugin-strips-css-attributes-with-shortcodes/#post-9060482)
 * Status: resolved