• Resolved dgsloves

    (@dgsloves)


    On the Clean Retina theme by Theme Horse, how do I make the header banner image responsive to mobile devices? Right now it is waaaay wider than the rest of the site, on my iphone.

    baxterbell.com

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dgsloves

    (@dgsloves)

    I already tried, to no effect, the following. Though maybe I put it in the wrong place

    .site-header {
    background-size: 100% auto;
    }

    and I also tried

    .site-header {
    background-size: 100% 100% !important;
    }

    THANKS!

    Hey Dgsloves! Try putting this code in your css.

    .hgroup-wrap {
        width: 100%;
    }

    Tell me if it works or you have any other questions or problems.

    -Wolfy and Brain (′?ω?`)

    Thread Starter dgsloves

    (@dgsloves)

    Hmm that didn’t seem to work. The header image is still much wider than the rest of the page content.

    Here’s what’s there now:
    site: baxterbell.com

    Thanks Wolfy and Brain!

    /* =Header
    ———————————————– */
    #branding {
    background: url(“../clean-retina/images/header-bg.jpg”);
    border-bottom: 1px solid #ddd;
    -moz-box-shadow: 0 7px 0 #f3f3f3;
    -webkit-box-shadow: 0 7px 0 #f3f3f3;
    box-shadow: 0 7px 0 #f3f3f3;
    }
    .hgroup-wrap {
    width: 100%;
    }

    .hgroup-wrap a {
    display: block;
    }

    .hgroup-wrap img {
    margin-top: 39px;
    margin-bottom: 13px;
    }

    Your image has inline sizing, this along with what @wolfs bRain suggested should overwrite it.

    .header-image {
        max-width: 100% !important;
    }
    Thread Starter dgsloves

    (@dgsloves)

    Hmmm, that didn’t seem to change anything. The banner is still wider than the mobile screen. I appreciate your help!

    .hgroup-wrap {
    width: 100%;
    }

    .header-image {
    max-width: 100% !important;
    }

    .hgroup-wrap a {
    display: block;
    }

    .hgroup-wrap img {
    margin-top: 39px;
    margin-bottom: 13px;
    }

    https://s11.postimg.org/ru9ftlaib/Untitled.png

    You have something overwriting the 100% width, looks like custom css plugin or custom styling area in the theme.

    Thread Starter dgsloves

    (@dgsloves)

    Aha- I had indeed previously inserted code in the design code -> custom css. Then I had been editing in the Editor CSS. But I see the previous code area overrides the other.

    THANK YOU!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Clean Retina theme – how to make header responsive’ is closed to new replies.