• 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

I want to change the background in the landing page template

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 › I want to change the background in the landing page template

This topic is: resolved

Tagged: background, landing page, minimum pro, template

  • This topic has 5 replies, 3 voices, and was last updated 11 years, 8 months ago by Brad Dalton.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • November 8, 2013 at 3:39 pm #71785
    lflier
    Member

    I am using the custom background feature in the Minimum Pro theme on my own website, which is in the development stage. The main background works very nicely for the front page, but I need a different background on my landing pages.

    Minimum Pro has a Javascript feature that resizes the background along with the page. I would like this feature on my landing pages, too. So my question is whether I can modify the landing page template to use a different background, or somehow trick or modify the Javascript to load a different background for any page that uses the landing page template.

    This appears to be the code in the template that calls the custom background:

    //* Enqueue Backstretch scripts
    add_action( 'wp_enqueue_scripts', 'minimum_enqueue_backstretch' );
    function minimum_enqueue_backstretch() {
    
    	//* Load scripts only if custom background is being used
    	if ( ! get_background_image() )
    		return;
    	
    	//* Load Backstretch scripts
    	wp_enqueue_script( 'minimum-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' );
    	wp_enqueue_script( 'minimum-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'minimum-backstretch' ), '1.0.0' );
    	wp_localize_script( 'minimum-backstretch-set', 'BackStretchImg', array( 'src' => get_background_image() ) );
    
    }

    I've searched the forums, but I've found nothing that I am able to work with. I'm comfortable hacking PHP and Javascript, but I have no formal training. Thanks in advance for your help.

    November 8, 2013 at 7:44 pm #71808
    lflier
    Member

    I may have found the answer to my question in this plugin, which has the page behaving as I want:

    Custom Background Extended

    November 8, 2013 at 9:41 pm #71815
    Brad Dalton
    Participant

    Here's 3 ways to use backstretch. You can use it conditional if you install the plugin http://wpsites.net/web-design/3-ways-to-add-responsive-background-images-slideshows-in-genesis-using-backstretch/


    Tutorials for StudioPress Themes.

    November 12, 2013 at 9:03 am #72466
    lflier
    Member

    Awesome! Thank you.

    February 23, 2014 at 11:55 am #92029
    Noe Garcia
    Member

    Good Day,
    I have somewhat the same question, is it possible to have a background for different landing pages?
    Like if I set a feature image in that landing page to use that as a background.

    February 23, 2014 at 7:34 pm #92063
    Brad Dalton
    Participant

    Yes. You can choose from a range of plugins or use conditional tags with the code to add a custom body class otherwise use the page i.d for each landing page.


    Tutorials for StudioPress Themes.

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

© 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