Header image issue at screens 480px and below

Homepage Community Forums Epik Theme Support Header image issue at screens 480px and below

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14227
    euclid32
    Customer

      Hi everyone,

      Like some others here, I’m having trouble getting the header to work responsively at smaller screen sizes. It is a large logo – 501×90 px. Below that width, the logo runs off screen. I should note that this is my first website, too, but I can usually follow direction well!

      My goal is too have it centered and resized to fit mobile screens. I’ve figured out the centering, but not the responsiveness.

      I’ve tried the suggestions I could find in these forums, and throughout the web, but no luck.

      First, I just added the following code mentioned here at the 480 media queries section:

      .header-image .site-title a {
          		background-size: contain !important;
      	}

      Then I tried uploading a smaller logo size and adding the following…

      I added some new css for the specific header image size in the media queries too, again without any luck.

      .header-image #title-area {
        background: url(image/logo-320-below.png) no-repeat;
        height: 57px;
        width: 320px;
      }

      I also tried the following:

      @media only screen and (max-width: 480px) {
      .header-image .site-title a {
      	float: none;
      	background: url(image/logo-320-below.png) no-repeat center top;
      	position: relative;
      	margin: 0 auto;
      	min-height: 57px;
      	width: 100%
      }
      }

      With the above code, I only added in each css rule one at a time after the background url, but none of those combination seemed to work.

      Should I be adding an additional rule in functions similar to what was added to specify the size of the large screen logo?

      I’ve looked into quite a few tutorials that don’t seem to work on html5 themes, so I’m not sure what else to do here.

      As you can tell, I’ve basically been experimenting – which has been a great way to learn a good bit of css and php while creating this website, but in the header area, I am simply at a loss.

      I’d be so grateful to anyone who can point this complete newbie in the right direction!

      I’ll go ahead and open up the site – it’s at a wpengine address, and won’t be redirected to the .org until tomorrow (if I can finally figure out the logo!)
      http://savetheozarks.wpengine.com/

      #14243
      Eric
      Customer

        You have a “min-width” that you added in your header, so that’s why it’s showing up like that. Once you remove it, it should adjust/resize. Look at lime 2036 in your css –

        .header-image .site-title a {
        	float: left;	
        	min-height: 90px;
        	min-width: 501px;
        	width: 100%;
        }

        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #14244
        euclid32
        Customer

          Ah! That was it. Almost there…

          When I removed the min-width, the logo became responsive, but was once again getting cut off on desktops, even with the “background-size: contain !important;” command.

          I played around with firebug, and realized that the title-area still had a smaller width, so I changed that to 501px, and now it works at all sizes! (At least from what I can tell with the “responsive design” tool. I haven’t tested on real devices yet.)

          I wish I hadn’t waited so long to get help. I think of everything I have learned so far, it is the header/title/widget-right area that seems the most complex.

          Thank you so much, Eric!
          Elizabeth

          #14277
          Eric
          Customer

            Sure thing, glad to help!

            You’re right, one of the hardest parts of all Genesis theme seems to be the logo. But, if you post here, we can help you get it setup easily…..so I guess it’s not really that bad after all 🙂


            I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Header image issue at screens 480px and below’ is closed to new replies.