Tumblr white bar appears on top of my mobile theme after disabling Follow button through code

谁都会走 提交于 2019-12-11 09:05:50

问题


So, as of 4/12/15, Tumblr has changed something in their code and the "Promote Tumblr!" buttons reappeared on my blog, even if I had them disabled in the advanced settings...

I searched and found this code:

iframe:first-child { display: none !important; }

that worked for me, but now on the mobile version of the site, I get a plain white bar on top, right where the Tumblr Promote buttons used to be... On desktop, everything works ok...

I attached the screenshots of before and after here:

Before:

,

After:

Any ideas how to get rid of it?

Thank you in advance!


回答1:


That is because Tumblr seem to add this class "tmblr-iframe--controls-phone-container" to the body and this style;

.tmblr-iframe--controls-phone-container {
    padding-top: 43px;
}

from what I found. Try: body { padding-top: 0 !important; }

You can use the "Developer Tools" in Chrome (desktop browser) to see the source HTML of your site on different mobile devices, that should help you with problems like this.

Note: I used the "Developer Tools" in Chrome Browser and was emulating a device called "iPhone 5" to recreate the issue in question.



来源:https://stackoverflow.com/questions/34115099/tumblr-white-bar-appears-on-top-of-my-mobile-theme-after-disabling-follow-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!