• I have a new client using the Twenty-Eleven theme. I just “inherited” the site from a long-gone creator.

    I’ve got it all responding well on mobile devices now, except that the author seems to have constructed the “header” in an odd (at least to me…) way.

    Instead of specifying a header image (it’s set to none), the site’s header-like image is actually a bg image on the #page element. (If it were me, I’d have set the image as a bg to the header element, and then positioned the h1 and h2 elements via CSS…whatever)

    When the site loads on a tablet, f’rinstance, all is well, except that the #page bg image doesn’t resize. The image is 1000px x 153px. Here’s the relevant CSS:

    #page {
    background: url(/images/header-bg007.png) no-repeat 0px 12px;
    margin: 2em auto;
    max-width: 1000px;
    clear: both !important;
    display: block !important;
    float: none !important;
    max-width: 100%;
    position: relative !important;
    }

    Is there a simple way to get the bg image to resize in this context?

    TIA!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Instead of specifying a header image (it’s set to none), the site’s header-like image is actually a bg image on the #page element.

    That’s not the original 2011 theme. Looks like you’re dealing with a custom theme – in which case, we can’t offer much in the way of help as we have no idea how they were constructed.

    Thread Starter wpress2010

    (@wpress2010)

    Well, I know it is Twenty-Eleven, but instead of using a child theme, someone just modified the CSS in style.css and left it at that. Otherwise, it seems pretty ordinary, in terms of how the site is structured: one right sidebar, menu area, etc.

    I guess I should really extract the custom CSS and put it in a child theme at this point, just to straighten things out. I think what I need is only a way to specify the image so that it resizes when the browser’s window size changes.

    A minor problem, though: in order to put all of the custom styling into a Twenty Eleven child theme, I would need an untouched Twenty Eleven style.css file for version 1.3, which is the one that is installed. Do you know where I might find that file?

    Thank you for your help!

    Thread Starter wpress2010

    (@wpress2010)

    Thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Twenty-Eleven on mobile: Almost…’ is closed to new replies.