• 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

Beautiful Pro Banner image just on 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 › Beautiful Pro Banner image just on home page

This topic is: resolved

Tagged: banner, beautiful pro

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 6 months ago by pjwdesign.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 7, 2015 at 7:45 am #164830
    pjwdesign
    Member

    Is it possible to just have the banner image on the home page? Many thanks

    September 7, 2015 at 7:19 pm #164867
    Brad Dalton
    Participant

    Yes but you may need to modify the CSS

    Add this on line 108 of functions.php

    if ( ! is_front_page()  )
    		return;
    

    Now looks like this:

    //* Hook site header banner after header
    add_action( 'genesis_after_header', 'beautiful_site_header_banner' );
    function beautiful_site_header_banner() {
    
    if ( ! is_front_page() )
    		return;
    
    	if ( ! get_background_image() )
    		return;
    
    	echo '<div class="site-header-banner"></div>';
    
    }
    

    Tutorials for StudioPress Themes.

    September 8, 2015 at 1:04 am #164882
    pjwdesign
    Member

    Many thanks Brad that's perfect.

  • 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

© 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