Title: how to combine inline css using plugin?
Last modified: August 24, 2016

---

# how to combine inline css using plugin?

 *  [nilay89](https://wordpress.org/support/users/nilay89/)
 * (@nilay89)
 * [11 years ago](https://wordpress.org/support/topic/how-to-combine-inline-css-using-plugin/)
 * Hello,
 * I have used this plugin in multisite and i want to some inline css combine with
   style.css. see Below
 * E.g
 * Some Css in <style>css</style> in theme header.php file and this css combine 
   with theme style.css
 * thanks
 * [https://wordpress.org/plugins/w3-total-cache/](https://wordpress.org/plugins/w3-total-cache/)

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

 *  [AJ @ WpFASTER.org](https://wordpress.org/support/users/ajm_1976/)
 * (@ajm_1976)
 * [11 years ago](https://wordpress.org/support/topic/how-to-combine-inline-css-using-plugin/#post-6164740)
 * Hi nilay89,
 * As of the date of this post, you cannot combine inline styles (or scripts) with
   W3TC. You can, however, with [Autoptimize](https://wordpress.org/plugins/autoptimize/).
 * Be sure to entirely disable minification in W3TC, though.
 * Enjoy,
    AJ
 *  [Scott Hartley](https://wordpress.org/support/users/destac/)
 * (@destac)
 * [11 years ago](https://wordpress.org/support/topic/how-to-combine-inline-css-using-plugin/#post-6164753)
 * Actually I would avoid doing that instead you should attempt to add the CSS (
   if its from your theme) to the main CSS file. The problem is depending on your
   hosting environment autoptimize will cause problems with inode generation.
 * It will generate a new file per page for minimal speed improvement. Adding it
   to the core CSS file will reduce the amount of inodes on your server.
 * If you have a small website with a few posts by all means use auto optimize but
   I strongly recommend following better practices.
 *  [AJ @ WpFASTER.org](https://wordpress.org/support/users/ajm_1976/)
 * (@ajm_1976)
 * [11 years ago](https://wordpress.org/support/topic/how-to-combine-inline-css-using-plugin/#post-6164761)
 * > you should attempt to add the CSS (if its from your theme) to the main CSS 
   > file.
 * Indeed a solution.
 * > The problem is depending on your hosting environment autoptimize will cause
   > problems with inode generation.
 * Just to be clear, hosting restrictions on inodes do not indicate a problem with
   Autoptimize or the number of inodes it might generate, but rather a hosting limitation.
 * > [Autoptimize] will generate a new file per page for minimal speed improvement
 * Autoptimize will generate a new file per page for page-specific or request-specific
   scripts (which is optimal). Page-specific or request-specific CSS is relatively
   rare and a non-issue. Both, however, become non-issues if/when the entire HTML
   response is cached; and, above-the-fold CSS is inlined or all CSS is inlined (
   in the instances in which inlining all CSS is the most performant solution).
 * > If you have a small website with a few posts by all means use auto optimize
   > but I strongly recommend following better practices.
 * Inode generation is not poor practices. It’s restriction is, however, part and
   parcel to cheap hosting plans so the host can continue to oversell the server.
 * More to the point, however, one can easily include or exclude whatever inline
   CSS or .JS one wants to include or exclude for concatenation with Autoptimize.
   There are additional mechanisms in place to keep cache size under control as 
   well (if one is on an oversold hosting plan, which all shared hosting is).
 * Lastly, one can find a multitude of search results about people getting into ‘
   too many inodes’ issues _with W3TC_; and, assuming my Google Fu is fully functional,
   precisely none about Autoptimize.
 * Best,
    AJ
 *  [QXARE](https://wordpress.org/support/users/qxare/)
 * (@qxare)
 * [11 years ago](https://wordpress.org/support/topic/how-to-combine-inline-css-using-plugin/#post-6164768)
 * If the additional styles are generated by plugins, you could try to dequeue/deregister
   them and add the css output directly to your stylesheet.
    In case they are really
   page specific you could enable “Inline CSS minification” to save a few bytes.
 *  Thread Starter [nilay89](https://wordpress.org/support/users/nilay89/)
 * (@nilay89)
 * [11 years ago](https://wordpress.org/support/topic/how-to-combine-inline-css-using-plugin/#post-6164838)
 * Thanks For Reply
 * But i want to answer about below
 * I have used “Prevent caching of objects after settings change” but when i check
   all images,js and css has query tag but some images has no query tag.
 * See Below example
 * I have used some dynamic images in li as background like
 * **<li style=”background-image:url(image_url)”> **
 * and this image has no query tag how can i set it?
 * Thanks

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

The topic ‘how to combine inline css using plugin?’ is closed to new replies.

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

 * 5 replies
 * 4 participants
 * Last reply from: [nilay89](https://wordpress.org/support/users/nilay89/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/how-to-combine-inline-css-using-plugin/#post-6164838)
 * Status: not resolved