• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Stretch Theme: Responsive Background Image

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Stretch Theme: Responsive Background Image

This topic is: resolved

Tagged: responsive background, Stretch theme

  • This topic has 11 replies, 2 voices, and was last updated 12 years, 4 months ago by AnitaC.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • December 24, 2012 at 6:59 am #7254
    AnitaC
    Keymaster

    The background images are not responsive, at least on my Android it isn't. Is there a way to make the background image responsive? Here again is the training site I am using for testing out the themes abilities. http://mediacreationsgroup.com/wptraining/


    Need help with customization or troubleshooting? Reach out to me.

    December 24, 2012 at 11:13 am #7268
    Riavon
    Member

    Hi Anita, I can't see your site link because it requires a login, but I use the following when I want a responsive background. Maybe this is something that can help you?

    /* Scaled BG image style source: http://css-tricks.com/3458-perfect-full-page-background-image/ */

    html, body {
    background: url(images/bg.jpg) no-repeat center top fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    }

    img.bg {
    /* Set rules to fill background */
    min-height: 100%;
    min-width: 1024px;

    /* Set up proportionate scaling */
    width: 100%;
    height: auto;

    /* Set up positioning */
    position: fixed;
    top: 0;
    left: 0;
    }


    @media
    screen and (max-width: 1024px) { /* Specific to this particular image */
    img.bg {
    left: 50%;
    margin-left: -512px;   /* 50% */
    }
    }

    /* End scaled bg img style -------------------------------- */


    Twitter: @riavonentprises

    December 24, 2012 at 11:15 am #7269
    AnitaC
    Keymaster

    Hi, it's back on now. So you can take a look. I also had posted another forum question about getting the footer to "sticky". Cannot get that to work either.


    Need help with customization or troubleshooting? Reach out to me.

    December 24, 2012 at 11:59 am #7279
    Riavon
    Member

    Thanks! Ok, I've taken some time to examine your site. Sorry I can't be more help, but I don't have the Stretch theme, so only after digging through your site's source code I realized that it seems that bg image (of the little girl) is generated by a script in the theme itself, rather than by your main stylesheet CSS.

    <script type='text/javascript'>
    /* <![CDATA[ */
    var BackStretchImg = {"src":"http:\/\/mediacreationsgroup.com\/wptraining\/wp-content\/uploads\/2007\/03\/MP900402059.jpg"};
    /* ]]> */
    </script>

    So, I'm a bit at a loss how to shrink that image down to fit smartphone screens unless you do some work in the CSS (along the lines of what I posted above) pertaining to that script.

    I did notice that your content area (the "About" text block) gets rather "squished" at phone width, and this can be easily remedied if you do the following to your style.css

    In your style sheet at line 1490 under your

    /* iPhones (portrait and landscape) ----------- */


    @media
    only screen and (max-width: 480px)

    Add this:

    #content-sidebar-wrap {
    float: left;
    width: 100%;
    }

    Make sure you add this within the open/close brackets for the @media styles.

    As far as the footer, in my experience the Genesis child themes will push that footer down once content is added to the pages. If you don't intend to add much content to the pages then you can try adding this to your style.css in the #footer div

    position:absolute;
    width:100%;
    bottom:0;

    So it would be:

    #footer {
    background-color: #111;
    clear: both;
    overflow: hidden;
    padding: 24px 0;
    padding: 1.5rem 0;
    text-align: center;
    position:absolute;
    width:100%;
    bottom:0;
    }


    Twitter: @riavonentprises

    December 24, 2012 at 12:20 pm #7286
    AnitaC
    Keymaster

    Thank you!!! {{{ clapping }}} ! Both work! I checked it also on my Android. Thank you for helping me fix the content area also. I was going nuts and was afraid to post another question about Stretch!


    Need help with customization or troubleshooting? Reach out to me.

    December 24, 2012 at 12:21 pm #7287
    AnitaC
    Keymaster

    Oh pooh, the footer is now covering the text on the Android. It's not moving around correctly. :o(


    Need help with customization or troubleshooting? Reach out to me.

    December 24, 2012 at 12:31 pm #7291
    Riavon
    Member

    Ugh! This is a screenshot what it's testing for me.

    What text is the footer covering? Is there any way you can share screenshots of what's happening?


    Twitter: @riavonentprises

    December 24, 2012 at 1:08 pm #7305
    AnitaC
    Keymaster

    Here is a screenshot from my Android phone - LINK.


    Need help with customization or troubleshooting? Reach out to me.

    December 24, 2012 at 1:24 pm #7307
    Riavon
    Member

    There must be an issue with absolute positioning for Android. I can only guess at this point that perhaps a browser detect script of some kind that either hides the footer or positions it in a different way for Android could possibly be a solution.


    Twitter: @riavonentprises

    December 24, 2012 at 1:28 pm #7308
    AnitaC
    Keymaster

    Okay, well.. thank you for your help. I took the absolute part out and it made it go to the bottom. It's a lot better than what it was. Thanks again. I appreciate you taking the time to help me.


    Need help with customization or troubleshooting? Reach out to me.

    December 26, 2012 at 9:38 am #7462
    AnitaC
    Keymaster

    Ria, if you come online today - I found this instruction but I am not sure how to use it. Would you happen to know and do I copy and paste the entire code or only pieces parts of it?

    http://www.jonbellah.com/2012/12/genesis-sticky-footer/


    Need help with customization or troubleshooting? Reach out to me.

    December 26, 2012 at 1:05 pm #7516
    AnitaC
    Keymaster

    This can be closed. I cannot get any of the things I find in the Google searches to work. I am purchasing a theme from Themeforest. Thank you for trying to help me.


    Need help with customization or troubleshooting? Reach out to me.

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Stretch Theme: Responsive Background Image’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble