• 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 Image Widget Question

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 › General Discussion › Altitude Image Widget Question

This topic is: resolved

Tagged: altitude, images, widgets

  • This topic has 5 replies, 3 voices, and was last updated 10 years, 8 months ago by calamityjabes.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 27, 2015 at 12:31 pm #153851
    calamityjabes
    Member

    I would like to know how to apply a background image to any of the widgets (featured sections). Currently i can only do so to sections 1, 3, 5, and 7. i would however like to apply one to ALL 1-7.

    Could one of you gurus point me in the right direction? 🙂

    May 27, 2015 at 4:11 pm #153874
    James
    Participant

    Hi

    this requires some modifications to theme themes files and customizer

    please let me know what level of experience you have with modifying theme files so i can share the info on how to do this for you.

    May 27, 2015 at 7:40 pm #153889
    EliteGD
    Member

    Hi Jamie, I'm working with Calamity on this one and i have some and i was able to get it to register so that you can apply it but it's not bringing in the background images after we browse and apply them.

    The website we are working on is http://gigabitbacon.com/

    In Front-page.php for 2, 4 and 6 I altered the

    <div class="solid-section">
    to
    <div class="image-section">

    Inside customize.php

    I added to the array
    $images = apply_filters( 'altitude_images', array( '1', '2', '3', '4', '5', '6', '7' ) );

    So when we go to Appearance, Customise, Front Page Background Images -
    We can now browse for images for all sections but they aren't displaying the background images they are just showing the default gradient as if there was no image.

    When I inspect i see the inline css bringing in

    <style id="altitude-pro-theme-inline-css" type="text/css">
    .front-page-1 { background-image: url(//gigabitbacon.com/wp-content/uploads/2015/05/bg-1.jpg); }.front-page-3 { background-image: url(//gigabitbacon.com/wp-content/uploads/2015/05/90860_c6ef4e013a65138a6093b229f803a5b1.jpg); }.front-page-5 { background-image: url(//gigabitbacon.com/wp-content/uploads/2015/05/android-boot-logo_634639.jpg); }.front-page-7 { background-image: url(//gigabitbacon.com/wp-content/uploads/2015/05/potbelly-pig-lounging-615.jpg); }
    </style>

    However it's not grabbing the ones for Featured Section 2 that we browsed for and applied.

    May 27, 2015 at 7:49 pm #153890
    EliteGD
    Member

    Oh I found my problem inside output.php

    I missed

    $opts = apply_filters( 'altitude_images', array( '1', '2', '3', '4', '5', '6', '7' ) );

    This was still 1,3,5,7

    May 27, 2015 at 7:52 pm #153891
    James
    Participant

    yep, that's it

    and you can change the class in front-page.php for those 7 sections from 'content-section' to 'image-section' if you want each one of those 7 sections to act the same

    May 28, 2015 at 6:57 am #153951
    calamityjabes
    Member

    thanks EliteGD this worked awesome!

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ 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