0

In magento 2.2.5, I am using the custom theme and I have used the blank theme's files. In mail I am getting this error :

CSS inlining error: DOMXPath::query(): Invalid expression in selector input[type="text"] in /root/vendor/pelago/emogrifier/Classes/Emogrifier.php on line 372.

I have tried these solutions: 1. link 1

1

Sorry for the late replay but maybe it will help someone.

On Magento 2.2.5 you can use the following workaround:

create the files
/web/css/email.less
/web/css/email-inline.less
in your custom theme and add the content from
/vendor/magento/theme-frontend-blank/web/css/email.less and
/vendor/magento/theme-frontend-blank/web/css/email-inline.css
respectively
but each with the line "@import 'source/_theme.less';" commented out (or removed)

still works with Magento 2.2.7

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.