Title: inline stylesheet causing problems with another plugin
Last modified: July 3, 2018

---

# inline stylesheet causing problems with another plugin

 *  [njwp](https://wordpress.org/support/users/njwp/)
 * (@njwp)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/inline-stylesheet-causing-problems-with-another-plugin/)
 * This is really specific, as it only seems to affect the firefox browser.
 * I have lightweight social icons on every page in the footer.
 * It puts a <link rel=”stylesheet” … > link into the body of the code (i.e. between
   the body tags rather than between the head tags).
 * Supposedly this shouldn’t be a problem as it is allowed by HTML5 but it is affecting
   the behaviour of another plugin I am using – ‘Accordion Shortcodes’
 * If I also have an accordion on the page, then if I navigate to another page and
   use the browser ‘back’ button to return to the page with the accordion, then 
   the accordion no longer works properly. (the accordion won’t stay open when you
   click on it)
 * I have verified that it is the inline stylesheet that is causing the problem,
   by creating a copy of the page code and moving the stylesheet link into the header.
   All works OK then with the accordion.
 * I’m not saying there is necessarily anything wrong with they way your plugin 
   is doing things as I understand it is WordPress that is putting the stylesheet
   in the body as by the time your plugin calls the wp_enqueue_style function, the
   head is already rendered.
 * So, I am commenting here, firstly so it may help someone else with a similar 
   problem but secondly – is there a way I can dequeue your stylesheet?
 * I can load it myself in my child theme functions.php (and then it would be in
   the header)
 * The inline styles that you create aren’t causing a problem, it is just the link
   to the style-min.css that is causing the problem.
 * It is a great plugin so I’d be very keen to find a solution.
 * Thanks

Viewing 1 replies (of 1 total)

 *  [treeflips](https://wordpress.org/support/users/treeflips/)
 * (@treeflips)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/inline-stylesheet-causing-problems-with-another-plugin/#post-10568464)
 * There are many tactics for it. Share your URL and you can get some help.

Viewing 1 replies (of 1 total)

The topic ‘inline stylesheet causing problems with another plugin’ is closed to 
new replies.

 * ![](https://ps.w.org/lightweight-social-icons/assets/icon-256x256.png?rev=2468125)
 * [Lightweight Social Icons](https://wordpress.org/plugins/lightweight-social-icons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightweight-social-icons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightweight-social-icons/)
 * [Active Topics](https://wordpress.org/support/plugin/lightweight-social-icons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightweight-social-icons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightweight-social-icons/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [treeflips](https://wordpress.org/support/users/treeflips/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/inline-stylesheet-causing-problems-with-another-plugin/#post-10568464)
 * Status: not resolved