• 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

    (@chamois_blanc)

    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

    (@launchinteractive)

    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.