• 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

Change Front Page Image Height in Atmosphere Pro

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 › Change Front Page Image Height in Atmosphere Pro

This topic is: not resolved

Tagged: Atmosphere, backstretch, front page image

  • This topic has 7 replies, 6 voices, and was last updated 9 years, 7 months ago by barryhill.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • March 11, 2016 at 4:02 pm #181234
    versefamebeauty
    Member

    Is there a way to edit the backstretch.js so that the home page image is only 50% (max 500 pixels) high? I want my widget content to be "above the fold" and didn't realize before purchasing the theme that this wouldn't be a simple stylesheet change.

    March 11, 2016 at 4:09 pm #181235
    Brad Dalton
    Participant

    Try changing the height value in front-page.js


    Tutorials for StudioPress Themes.

    March 14, 2016 at 8:18 am #181396
    versefamebeauty
    Member

    I'm going to need to know more jquery to know what my options are here...

    jQuery(function( $ ){

    // Set front page 1 height
    var windowHeight = $( window ).height() - 77;

    $( '.front-page-1' ) .css({'height': windowHeight +'px'});

    $( window ).resize(function(){

    var windowHeight = $( window ).height();

    $( '.front-page-1' ) .css({'height': windowHeight +'px'});

    });

    // Local Scroll Speed
    $.localScroll({
    duration: 750
    });

    });

    July 30, 2016 at 1:04 pm #190497
    PainterMommy
    Member

    I am looking for the answer to this. What do we adjust in the .js for the image height???

    July 31, 2016 at 11:39 pm #190555
    Dave
    Member

    I guess I would be the third person trying to find the same answer to the same question.

    I know you can find the file to edit in the following dir "wp-content/themes/digital-pro/js/front-page.js" You will have to change the digital-pro to your theme name, at this moment I still have not been able to get the correct answer on how to solve the problem. It seems that anything I try will not change the image height.


    Please visit me at tsttechnology.com

    September 5, 2016 at 3:44 pm #192659
    thinkmedia
    Member

    After much cursing and searching I have put this in my style.css file

    .backstretch {height: 650px!important;}
    .front-page-1 {height: 650px!important;}

    It's a hack but it seems to work so far.

    I've read the documentation from the developer and while it indicates simply changing the details in backstretch.js that doesn't work either.

    {left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},s={position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxHeight:"none",maxWidth:"none",zIndex:-999999},q=function(c,b,e)

    Changing the front-page.js file should do it but the only value in this file is -77 and changing it didn't make a difference.

    // Set front page 1 height
    	var windowHeight = $( window ).height() - 77;

    So unless there is a weird combination of multiple files, I am resorting to the CSS hack.

    It's too bad StudioPress hasn't posted an easier solution to this problem that way too many people are having, and continue to ask about changing.

    UPDATE: Grrrrr - using a fixed value works buuuuut it isn't height responsive. Width is responsive still. If you use a percentage, it doesn't scale (responsive) at all. I'll keep trying.

    September 5, 2016 at 6:55 pm #192669
    thinkmedia
    Member

    Use max-height instead

    .backstretch {max-height: 650px!important;}
    .front-page-1 {max-height: 650px!important;}

    December 23, 2016 at 2:41 am #198033
    barryhill
    Member

    Hi

    I have tried this, it works on a desktop, but on mobile it doesn't scale and leaves a large gap under the picture?

    Ideas for a way around this?

    Barry

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 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