Title: Issue with Elementor wp_add_inline_style usage
Last modified: June 22, 2018

---

# Issue with Elementor wp_add_inline_style usage

 *  [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/issue-with-elementor-wp_add_inline_style-usage/)
 * Hi,
 * I am encountering with the plugin while using Elementor. Elementor uses wp_add_inline_style
   in wp-content/plugins/elementor/includes/css-file/post-css-file.php (and a few
   other files). The generated css differs from post page to post page, but the 
   MMR plugin seems to feed the same content.
 * What do I need to put in the exclusion file list to work around this issue?
 * Thank you

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

 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/issue-with-elementor-wp_add_inline_style-usage/#post-10424428)
 * I was able to fix this by adding the following file path to the exclusion list:
 * `https://<site>/wp-content/plugins/elementor/assets/css/frontend.min.css`
 * Could you document the syntax of the exclusion file list? does it support regex
   or ‘*|?’ style patterns?
 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/issue-with-elementor-wp_add_inline_style-usage/#post-10424480)
 * Hi,
 * I’m glad you solved it. Currently there is no regular expression support for 
   the exclusion list so its just the absolute path at this stage. We were thinking
   of adding it.. if you want to have a fiddle I think this should work by modifying
   line 655:
 * `!in_array($ourList->registered[$handle]->src, $this->ignore)`
 *  to this:
 * `preg_match("/".implode('|',$this->ignore)."/", $ourList->registered[$handle]-
   >src) == 0`

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

The topic ‘Issue with Elementor wp_add_inline_style usage’ is closed to new replies.

 * ![](https://ps.w.org/merge-minify-refresh/assets/icon.svg?rev=3414776)
 * [Merge + Minify + Refresh](https://wordpress.org/plugins/merge-minify-refresh/)
 * [Support Threads](https://wordpress.org/support/plugin/merge-minify-refresh/)
 * [Active Topics](https://wordpress.org/support/plugin/merge-minify-refresh/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/merge-minify-refresh/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/merge-minify-refresh/reviews/)

## Tags

 * [inline css](https://wordpress.org/support/topic-tag/inline-css/)
 * [wp_add_inline_style](https://wordpress.org/support/topic-tag/wp_add_inline_style/)

 * 2 replies
 * 2 participants
 * Last reply from: [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/issue-with-elementor-wp_add_inline_style-usage/#post-10424480)
 * Status: not resolved