• 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

Best practice for displaying a different header image on each 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 › Best practice for displaying a different header image on each page?

This topic is: not resolved

Tagged: css, header, image

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 2 months ago by kworthington.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 24, 2013 at 3:51 pm #14410
    kworthington
    Member

    Hi, I'm using the Pixel Happy child theme (http://demo.studiopress.com/pixelhappy/) and I'm wondering what the best way is to display a different header image / logo (images/header.png) at the top of pages.

    Is there a plugin available that will do this? Or should I use PHP,  CSS, or a mixture of PHP and CSS to make it happen? Any examples would be really helpful too.

    Thank you,

    Kevin

    January 24, 2013 at 4:16 pm #14421
    SoZo
    Member

    You can use body classes to create separate style rules.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 24, 2013 at 5:23 pm #14457
    kworthington
    Member

    Thanks John, I'll check it out.

    January 24, 2013 at 8:00 pm #14509
    kworthington
    Member

    Yes, that got me on track - thank you!

    For anyone else using Pixel Happy specifically, I used:

    .page-id-25 .header-image #title-area, .header-image #title-area #title, .header-image #title-area #title a {
    background-image: url(http://mydomain.com/wp-content/uploads/2013/01/Page25Header.png);
    background-position: initial initial;
    display: block;
    float: left;
    width: 960px;
    height: 120px;
    margin: 0;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    background-repeat: no-repeat no-repeat;
    }

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