Skip to content
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

Mobile not formatting properly #87

Closed
claymcleod opened this issue Sep 2, 2014 · 1 comment
Closed

Mobile not formatting properly #87

claymcleod opened this issue Sep 2, 2014 · 1 comment

Comments

@claymcleod
Copy link

Hello! Thanks again for such a great theme! I'm having trouble with my site rendering on mobile/tablets. It seems to have a large white space between the title and the content. Could you maybe give me some insight into what's happening here?

http://claymcleod.github.io/blog/articles/whats-in-a-post-part-2/

Thanks,
Clay

@mmistakes
Copy link
Owner

I see the problem. When I added a Google AdSense module I used some code from my personal site to show ads on all pages by default. What's happening in your case is that blank space is where the ad would go, but it's not displaying because you're obviously not using Google Ads.

I just pushed a fix to _layouts/post.html that turns off Google Ads by default. Just change line 51 in your post.html layout to {% if page.ads == true %}{% include ad-sidebar.html %}<!-- /.google-ads -->{% endif %} and you should be good to go.

Or you could leave it as is and just add ads: false to every post. That's more work though 😉

robercano pushed a commit to robercano/robercano.github.io that referenced this issue Mar 30, 2016
- Fixes mmistakes#87, removes blank space on small screens
robercano pushed a commit to robercano/robercano.github.io that referenced this issue Mar 30, 2016
- Fixes mmistakes#87, removes blank space on small screens
brandon-jimenez pushed a commit to brandon-jimenez/resume that referenced this issue Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants