• 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

Altitude Pro – Full width 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 › Design Tips and Tricks › Altitude Pro – Full width background image

This topic is: not resolved

Tagged: how to set homepage background image slider?

  • This topic has 2 replies, 3 voices, and was last updated 7 years, 10 months ago by eppiemcm.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 19, 2018 at 2:15 pm #221831
    AHereld
    Member

    Trying to create a full-width background image that I can use on this page. I want it to be a background image, so I can create text over the top of it. Problem is when resizing the screen. Need to limit the height, but still allow it to go full width without distorting.

    My next line here "A dozen life insurance companies" will go up inside the blue area when resizing. I want that to always be below the blue. Hope that makes sense. :/

    http://communityinsurancegroup.com/aaa/
    September 1, 2018 at 10:11 am #222863
    greenpoint
    Member

    Hello, Sir, I want to learn, how to set homepage background image slider instead of fixed image in altitude pro theme and change text for each image slide

    September 4, 2018 at 9:33 am #222925
    eppiemcm
    Participant

    Hi there, I found this article after much searching. I hope it will help:
    https://journalxtra.com/wordpress/snippets/use-wordpress-featured-image-post-page-background-picture/

    This makes your "Featured Image" image the full width background image. You would need to also add some styling in your CSS to make this display as you want it to.

    At end of functions.php in Altitude Pro:

    ---

    add_action( 'wp_head', 'vr_set_featured_background', 99);
    function vr_set_featured_background() {
    $image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(1600), false );
    if ($image_url[0]) {
    ?>
    <style>

    html,body {
    height:100%;
    margin:0!important;
    }
    body {
    background-color:#ef3340;
    background:url(<?php echo $image_url[0]; ?>) #000 left top no-repeat;
    background-size: 100% ;
    }
    /* Uncomment if the image hangs low in a Genesis theme */
    /*.site-inner {
    padding-top:0!important;
    padding-bottom:0!important;
    }*/
    </style>
    <?php
    }
    }

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