• 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

Replace agency bg with large bg 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 › Design Tips and Tricks › Replace agency bg with large bg image

This topic is: not resolved

Tagged: Replace agency bg with large bg image

  • This topic has 4 replies, 3 voices, and was last updated 13 years, 1 month ago by Sunil.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 10, 2013 at 11:00 am #10987
    Herman
    Participant

    How do I replace the agency bg image with this large image so it covers the whole bg horizontally and vertically?

    http://upload.wikimedia.org/wikipedia/commons/1/17/Messier_15_HST.jpg

    This is what I changed the CSS to but the whole image is 40MB and slows the loading of the page.

    body {
    background-image: url(images/bg.png);
    background-position: top center;
    }

     

     

    January 12, 2013 at 9:42 am #11447
    Sunil
    Member

    The resolution for this image is pretty big. It doesn't do any good for your site by placing this image as background as it will take a long time to load. You will not get any traffic probably.

    If you have photoshop, than you can save this image for web-based image thus reducing the file size significantly and without much disturbing the resolution of the image. That means, saving it as a gif instead of jpg.

    If you don't have photoshop, you can go to http://www.gimp.org to download this free software and can do similar things to reduce the file size.

    January 12, 2013 at 10:40 am #11457
    Jon Bellah
    Member

    Yeah, you'll definitely want to compress that image down. However, to answer your question how to get the background CSS to work correctly, you want to use:

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

    You can also use a jQuery plugin called Backstretch that's really easy to set up and is likely a better option.


    Follow me on the Twitters at @JonBellah. I blog about web design, development and a lot about Genesis at CSSForge.com

    January 13, 2013 at 8:02 am #11568
    Herman
    Participant

    Thanks a lot Sunil and Jon..your tips were very helpful.

    January 13, 2013 at 10:26 am #11592
    Sunil
    Member

    You're welcome Herman! 🙂

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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