You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to pass something like data-ea-smaller-screen=false (or something similar) when using data-ea-style=stickybox to avoid the ad to be re-positioned on smaller screens. This will allow us to show the ad only on bigger screen and show no ad on smaller screens.
I think this is possible. I just want to keep it explicit and keep the backwards compatibility of it (the existing stickybox is >1300px or it collapses). We could even have data-ea-style="stickybox-force" which doesn't collapse or something like that. I also wouldn't be opposed to something like data-ea-hide-mobile="true" or something like that.
In Read the Docs, we are only injecting the stickybox ad if the screen is >1300px. Besides, we are adding an resize event that check if the screen size goes <1300px, we mark the ad as display: none so it's not shown at all when it's auto-collapsed by the stickybox ad client's logic.
That said, I don't need this option anymore since I found this workaround that solves our problem for now. However, it could be a good idea to standardize this behavior by passing an argument as we are discussing here. However, I don't think this is a priority for now.
I'd like to be able to pass something like
data-ea-smaller-screen=false
(or something similar) when usingdata-ea-style=stickybox
to avoid the ad to be re-positioned on smaller screens. This will allow us to show the ad only on bigger screen and show no ad on smaller screens.Would it be possible?
Referece
The text was updated successfully, but these errors were encountered: