• 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

Parallax Pro – Please help! Custom Header Images on Pages.

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 › Parallax Pro – Please help! Custom Header Images on Pages.

This topic is: resolved

Tagged: css, Custom header, entry titles, header, parallax, parallax-pro

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 5 months ago by SamBell.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 14, 2014 at 7:15 pm #134540
    SamBell
    Member

    Hi Everyone,

    I have an outstanding question regarding custom header images for pages using Parallax Pro. The initial post is here: http://www.studiopress.community/topic/parallax-pro-full-width-images-on-pages/ but I am still looking for an answer.

    I used Sridhar Katakam's tutorial on relocating entry title headers (found here: http://sridharkatakam.com/relocating-entry-title-header-genesis/ ) but I want to make these headers images rather than text. The person who initial responded to my questions said this:

    I amended the CSS to display scaling background images to create full width, applying the page-id-xx code in the CSS to define different images for each page.

    But I don't know how to do this? Can someone help me with what this css code would look like?

    Please help, this is an urgent project!

    December 14, 2014 at 10:36 pm #134547
    Genesis Developer
    Member

    Add this code in your functions.php file

    add_image_size( 'header-img', 9999, 250, TRUE );
    add_action('genesis_after_header', 'site_banner', 25);
    function site_banner(){  
      if( !is_singular('page') )
         return;
    
      if( has_post_thumbnail() && is_page() ) :
       $ftbanner = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'header-img' );
       $banner = $ftbanner[0];
        echo '<div id="site-banner" class="site-banner">' . "\n";
        echo '<img src="' . $banner . '">' . "\n";
        echo '</div>' . "\n";
      endif;
    }

    There have featured image option for pages. When you'll set a image as a featured image then it'll display on header.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    December 16, 2014 at 4:06 pm #134714
    SamBell
    Member

    Oh wow! Thank you so much this works perfectly! Thanks for your help!!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Parallax Pro – Please help! Custom Header Images on Pages.’ 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

© 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