• 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

Dynamic Headers, Multiple Headers

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 › Dynamic Headers, Multiple Headers

This topic is: not resolved

Tagged: header

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 8 months ago by markr.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 10, 2013 at 6:24 pm #34653
    markr
    Member

    Struggling on this one for some reason. Would like to attach alternative header graphics to various Pages and Post Categories. Starting with this addition to stylesheet, but do not think it is correct, because there is no change from the default full-width image header graphic.


    .page-id-544 .header-full-width #title-area,
    .page-id-544 .header-full-width #title,
    .page-id-544 .header-full-width #title a {
    background: url(/images/header-offroad-v1.png) no-repeat transparent;
    }

    Am I barking entirely up the wrong tree here? Must the tag also be specifically modified somewhere as well? Thanks in advance for a shove in the right direction.

    April 10, 2013 at 7:51 pm #34669
    Brad Dalton
    Participant

    Try this http://wpsites.net/web-design/display-custom-header-images-on-category-archive-pages/


    Tutorials for StudioPress Themes.

    April 10, 2013 at 8:07 pm #34671
    markr
    Member

    Thanks for weighing in, Brad. I tried adding this to my functions.php in the child theme:

    /** Added by MR for custom body classes to facilitate multiple headers */
    add_filter( 'body_class', 'add_body_class' );
    function add_body_class( $classes ) {
    if ( is_page( '544' ))
    $classes[] = 'page-id-544';
    return $classes;
    }

    and this into the stylesheet:

    .page-id-544 .header-full-width #title-area,
    .page-id-544 .header-full-width #title,
    .page-id-544 .header-full-width #title a {
    background: url(/resources/images/header-offroad-full-v1.png) no-repeat transparent;
    }

    Somewhere I must be making wrong assumptions about how a CSS works with Genesis.

    April 10, 2013 at 8:10 pm #34672
    Brad Dalton
    Participant

    That code won't work.

    You can use CSS or PHP to add different images to different pages, posts and categories.


    Tutorials for StudioPress Themes.

    April 10, 2013 at 8:40 pm #34679
    markr
    Member

    No, it surely did not work. But I don't know why and wish I did. Am I not adding a class to a page and then in the style sheet specifying a background for that class? Where did I go wrong? And thanks!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

© 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