• 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

How to show background image on added home page section in Parallax 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 › How to show background image on added home page section in Parallax Pro

This topic is: resolved

Tagged: front page, parallax-pro

  • This topic has 4 replies, 2 voices, and was last updated 4 years, 2 months ago by wolfman66.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 28, 2019 at 11:25 pm #492002
    wolfman66
    Participant

    I have added (in functions.php) an additional 4 widget areas to the homepage in Parallax Pro, being home-section-6 to home-section-9.

    In front-page.php I added the following to "function parallax_home_genesis_meta()":

    || is_active_sidebar( 'home-section-6' ) || is_active_sidebar( 'home-section-7' ) || is_active_sidebar( 'home-section-8' ) || is_active_sidebar( 'home-section-9' )

    I also added the following to front-page.php.

    genesis_widget_area( 'home-section-6', array(
    'before' => '<div class="home-even home-section-6 widget-area"><div class="wrap">',
    'after' => '</div></div>',
    ) );

    genesis_widget_area( 'home-section-7', array(
    'before' => '<div class="home-odd home-section-7 widget-area"><div class="wrap">',
    'after' => '</div></div>',
    ) );

    And the same for widget areas 8 & 9.

    Then in customize.php I added the following number of arrays:

    function parallax_customizer() {

    global $wp_customize;

    $images = apply_filters( 'parallax_images', array( '1', '3', '5', '7', '9' ) );

    In output.php I also edited the following:

    $opts = apply_filters( 'parallax_images', array( '1', '3', '5', '7', '9' ) );

    I have added the relevant home section classes to the style.css file.

    I have altered parallax.js to add the conditional statements for the relevant home sections.

    Everything works perfectly - EXCEPT that Parallax is not working on home-section-7 and home-section-9.

    Can anyone tell me what I have missed.

    Thanks so much in advance.

    http://on staging site
    June 28, 2019 at 11:32 pm #492003
    Brad Dalton
    Participant

    Link to a live site if you need help troubleshooting CSS or jQuery.


    Tutorials for StudioPress Themes & WooCommerce.

    June 29, 2019 at 1:16 am #492004
    wolfman66
    Participant
    This reply has been marked as private.
    June 30, 2019 at 2:20 am #492009
    wolfman66
    Participant

    UPDATE: When I inspect the images where parallax is not working, I notice that the style="background-position: 50% -332.5px;" is missing.

    June 30, 2019 at 2:54 am #492010
    wolfman66
    Participant

    RESOLVED: Forgot to add cache bust snippet so wasn't seeing immediate changes to stylesheet.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to show background image on added home page section in Parallax Pro’ 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