• 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

Infinity Pro – Change the height of the home page background images

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 › Infinity Pro – Change the height of the home page background images

This topic is: resolved

Tagged: change height, home page background images, Infinity Pro

  • This topic has 5 replies, 3 voices, and was last updated 4 years, 1 month ago by smiley.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • February 1, 2019 at 2:40 am #489191
    smiley
    Participant

    Hi,
    The home page background images. Change to 1600 pixels wide and 250 pixels tall.
    The default images are 1600 pixels wide and 1000 pixels tall.

    https://demo.studiopress.com/infinity/
    February 1, 2019 at 12:32 pm #489200
    MikeB2
    Member

    This works in (style.css) for most themes:

    html {
        background: url('https://yourdomain.com/wp-content/themes/your-child-theme-name/images/bg_image_name.jpg') no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
    
    body { background: none;}

    Oops, I saw you want to limit the height to 250px. The image will distort if you try to force it to 250px height.

    February 1, 2019 at 5:47 pm #489214
    smiley
    Participant

    Thanks but that doesn't work.
    I have searched the css, functions & lib/customize.php without an answer.

    February 4, 2019 at 1:12 am #489278
    smiley
    Participant

    That does not work MikeB2. Thanks anyway. Does anyone know how to solve this?

    February 4, 2019 at 6:17 am #489284
    andytc
    Participant

    Infinity Pros Front-Page-1 has a VH unit set -

    .front-page-1 {
     height: 100vh;
    }

    A further media query -

    @media only screen and (max-width: 800px)
    .front-page-1 {
        height: auto;
    }

    That forces it be the full height on whatever size device you're on, until it gets to that media query.

    you could try changing the main entry to display auto and see if that helps with the height.

    .front-page-1 {
        height: auto;
    }

    https://css-tricks.com/fun-viewport-units/

    Viewport Height (vh) – Is a percentage of the full viewport height. 10vh will resolve to 10% of the current viewport height.

    February 4, 2019 at 4:07 pm #489298
    smiley
    Participant

    Many thanks andytc. That certainly explains it!

    February 5, 2019 at 1:21 am #489306
    smiley
    Participant

    andytc you rock. That explains it so well. Thank You. 🙂

    February 6, 2019 at 12:47 am #489335
    smiley
    Participant

    Thanks very much andytc. That explains it so well. 🙂

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Infinity Pro – Change the height of the home page background images’ 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

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