• 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 Theme – change header image on selected 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 › Beautiful Theme – change header image on selected pages

This topic is: resolved

Tagged: Beautiful theme, header image

  • This topic has 6 replies, 2 voices, and was last updated 9 years, 7 months ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • October 21, 2013 at 8:06 am #68024
    Jumpringer
    Member

    The Beautiful theme features a full width image at top of page.

    I would like to either remove or revise the image on all pages except the home page.

    If there is a way to do this, either through a plugin, code snippet, or hook, please advise.

    http://jumpgraphix.com/stage/dev/jumpgraphix_new/
    October 21, 2013 at 8:24 am #68030
    Brad Dalton
    Participant

    There's at least 4 ways to do it.

    The WP Display Header plugin is the easiest.


    Tutorials for StudioPress Themes & WooCommerce.

    October 21, 2013 at 8:52 am #68038
    Jumpringer
    Member

    OK, I'm partially there; revised the landing page to eliminate the image header. Still need to display an image, just a different image from the home page.

    October 21, 2013 at 9:34 am #68040
    Jumpringer
    Member

    Thanks Brad, the plugin isn't appropriate for this as it affects the header image; in the Beautiful Template, the code that controls the display of the screen-wide image (that I want to revise) is:

    remove_action( 'genesis_after_header', 'beautiful_site_header_banner' );

    My original post was probably not clear as to which image I was referring to. If you have other suggestions, please let me know!

    October 21, 2013 at 10:47 am #68066
    Jumpringer
    Member

    Getting closer....

    I've created a custom page template and want to replace a full-width image (that is positioned beneath the header) with a smaller image.

    Hook is not working; syntax error unexpected '<'

    Here's my code so far:
    //* Remove site header banner
    remove_action( 'genesis_after_header', 'beautiful_site_header_banner' );

    //*add hook for revised banner image

    <?php genesis_after_header(); ?>
    <div class="site-header-banner-add"> (this is a new css class to render a less deep image)
    <?php genesis_header(); ?>

    //*end hook

    October 21, 2013 at 11:32 am #68069
    Jumpringer
    Member

    Resolved for now; not the best solution as new pages/code need to be created to show different images on more than one page.

    //* Remove site header banner
    remove_action( 'genesis_after_header', 'beautiful_site_header_banner' );

    //*create new function and point to new css to make banner image less deep
    add_action( 'genesis_after_header', 'beautiful_site_header_banner_custom' );
    function beautiful_site_header_banner_custom() {

    echo '<div class="site-header-banner-add"></div>';

    }

    //*end new function

    October 23, 2013 at 5:36 am #68387
    Brad Dalton
    Participant

    You can hook it in from your child themes functions.php file and add a conditional tag so it only displays on specific pages.


    Tutorials for StudioPress Themes & WooCommerce.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Beautiful Theme – change header image on selected 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

© 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