-
-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mobileOn -mobileOff don't work #22
Comments
You need to use a tool like https://github.com/jjriv/emogrifier to apply all styles in <style> tags to their respective HTML tags before sending out your emails. |
Unfortunately this wont help you with mobile styles if you're using media queries and breakpoints. I don't think there is any workaround. |
Apologies for my late reply, to my knowledge there is no workaround to hide all on android devices using Gmail. This may help -> http://freshinbox.com/blog/targeting-new-gmail-css/ |
@erdemildiz I had also this same issue and found out that the problem was in the selector: I dont know if it will have some side effects. But I hope it work for you too. |
Hello everyone;
We are using email-framwork for our mails. Sometimes we need to seperate views for device width. For example; For mobile and desktop using different view, so we decided to use
mobileOn
andmobileOff
, but when we add<style>
at the top of page, It didn't work in gmail. Gmail removes all<style>
tags, so the mail view is shown as desktop.How can we fix. Thanks
The text was updated successfully, but these errors were encountered: