• 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

Custom background only for home page

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 › Custom background only for home page

This topic is: resolved

Tagged: beautiful pro, custom background, home page

  • This topic has 9 replies, 3 voices, and was last updated 7 years, 10 months ago by surfpeople.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • May 10, 2015 at 8:26 pm #151618
    surfpeople
    Member

    Hi guys.
    How do you only have the custom background for the home page.

    I'm using the Beautiful pro theme

    Thanks in advance.

    Lee

    http://leeyoung.com.au
    May 10, 2015 at 8:37 pm #151620
    Christoph
    Member

    Hi Lee,

    you can use the .home css selector to only target the home page.

    Add this to your style.css:

    .home {
    background-color: #***;
    }

    Replace the *** with the color or color code of your liking.

    If this solves your question, please mark this topic as resolved, so it can be closed.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    May 10, 2015 at 11:19 pm #151641
    surfpeople
    Member

    Thanks Chris
    But that isn't what I need to happen.
    I would like to have the custom background image on the home page only.

    Thanks, I appreciate your time.

    Lee

    May 11, 2015 at 12:52 am #151648
    upthink
    Participant

    The class "home" is applied to the body only on the home page. So applying the css that Christoph suggested should work (you can setup a background image instead of a color depending on what you need exactly)

    May 11, 2015 at 1:09 am #151649
    surfpeople
    Member

    Coolio upthink, love your work.

    Thanks again.

    Lee

    May 11, 2015 at 1:23 am #151650
    surfpeople
    Member

    mmmm.
    That worked fine as customising the only home page and I can see how the .home class worked,
    but the beautiful theme has a custom background for all pages. This image is displayed as a banner below the header.
    So adding the .home class changes the background for the whole page not the custom back-ground image for beautiful pro theme.

    Thanks

    May 11, 2015 at 1:26 am #151651
    upthink
    Participant

    Not sure what you mean - care to share the URL so that I can see what you mean?

    May 11, 2015 at 1:36 am #151652
    surfpeople
    Member

    Thank you.
    http://surfpeople.com.au
    you will see the image below the navigation on each page.
    Where I only would like this to be on the home page.

    May 11, 2015 at 1:55 am #151657
    upthink
    Participant

    I have not played with this specific child theme - so there may be an easier way to do it just using the settings. But a css way that should work:

    
    /** hide it everywhere **/
    .custom-background .site-header-banner {
      display: none;
    }
    
    /** just show it on home page **/
    .home .site-header-banner {
      display: block;
    }
    May 11, 2015 at 2:01 am #151658
    surfpeople
    Member

    You sir, are a legend.
    Thank you so much.
    I don't think there is a site wide setting for this custom image, unless I'm completely blind.
    Thanks again lets close it off.

    Have a good day.
    Lee

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Custom background only for home page’ 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