Fixed Header Is Blocking Part Of My Blog Photo

  • Unknown's avatar

    Hi there!

    If you view our “Adventure Blog” page on mobile you will notice that our fixed header is blocking half of the image at the top of the page. This is also the case if you click through to one of the blog posts.

    Is there a way to adjust this so that it displays correctly with the fixed header?

    Thanks in advance,
    TJ & Alli

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi TJ & Alli, go to Customize > CSS, delete all the informational text in that window, and paste in the following custom CSS and let me know what you think. I’ve used a Media Query to space the content down on 500px and narrower screens/windows.

    @media screen and (max-width: 500px) {
    .blog .site {
    	margin-top: 100px;
    }
    }
  • Unknown's avatar

    This worked! Thank you.

    Now, is there a way to do the same thing on each blog post. For example, now when you go to our “Adventure Blog” on a narrower mobile device the image shows correctly, but when you click on a post and are directed to that posts unique page, the top image is still slightly cut off.

    We appreciate your assistance!
    TJ & Alli

  • Unknown's avatar
  • Unknown's avatar

    Hi there, I’m seeing a number of things we need to address that are the result of “fixing” the title/navigation area. First off, when I’m logged in and the admin bar is at the top of the screen, your site title is partially obscured. We will need to make a few specific adjustments to get things to work while logged in and logged out, and on all the different page types.

    First off, remove this from your custom CSS.

    @media screen and (max-width: 500px) {
    	.blog .site {
    		margin-top:150px
    	}
    }

    and then place this at the very bottom of your custom CSS.

    @media screen and (min-width: 783px) {
    	.logged-in .site-header, .logged-in .site-header {
    		margin-top: 32px;
    	}
    	.logged-in .site {
    		margin-top: 150px;
    	}
    	.blog .site {
    		margin-top: 130px;
    	}
    	.logged-in.page .site {
    		margin-top: 0;
    	}
    }
    @media screen and (max-width: 782px) {
    	.single.logged-in .site-header, .page.logged-in .site-header {
    		margin-top: 45px;
    	}
    	.single.logged-in .site {
    		margin-top: 125px;
    	}
    	.blog .site {
    		margin-top: 100px;
    	}
    }
    @media screen and (max-width: 500px) {
    	.blog .site {
    		margin-top: 150px;
    	}
    }
  • Unknown's avatar

    Hey,

    Thanks! This definitely seems to have fixed those obscurities when logged in. However, when I view on my mobile and click on a blog post the top image still gets cut off by the fixed menu.

    We appreciate the help,
    TJ & Alli

  • Unknown's avatar

    Hmmm, my phone is updating, but I was able to see the issue in my browser at phone widths, and I see that I didn’t account for single posts when logged out, so let’s give this a try, and make sure and click around, logged in and logged out, and let me know if I missed anything else.

    @media screen and (min-width: 783px) {
    	.logged-in .site-header, .logged-in .site-header {
    		margin-top: 32px;
    	}
    	.logged-in .site {
    		margin-top: 150px;
    	}
    	.blog .site {
    		margin-top: 130px;
    	}
    	.single .site {
    	    margin-top: 150px;
    	}
    	.logged-in.page .site {
    		margin-top: 0;
    	}
    }
    @media screen and (max-width: 782px) {
    	.single.logged-in .site-header, .page.logged-in .site-header {
    		margin-top: 45px;
    	}
    	.single.logged-in .site {
    		margin-top: 125px;
    	}
    	.blog .site {
    		margin-top: 100px;
    	}
    	.single .site {
    	    margin-top: 130px;
    	}
    }
    @media screen and (max-width: 500px) {
    	.blog .site {
    		margin-top: 150px;
    	}
    }
  • Unknown's avatar

    Looks to have done the trick! We just want to say thanks for being so helpful, it looks like you do a lot to help out the wordpress community.

    Until the next one,
    Tj & Alli

  • Unknown's avatar

    Tj & Alli, you are welcome.

  • The topic ‘Fixed Header Is Blocking Part Of My Blog Photo’ is closed to new replies.