• 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

Limit Simple Hooks code to pages and posts only in Parallax Pro?

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 › Limit Simple Hooks code to pages and posts only in Parallax Pro?

This topic is: not resolved

Tagged: banner, parallax-pro, Simple Hooks

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 5 months ago by Jamie.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 22, 2015 at 8:41 pm #174595
    Jamie
    Member

    Hi, I have an image uploaded that I want to use as a full-width banner on my pages and posts - but not the homepage, since it completely messes up the front page. I added this code:

    Banner

    To Simple Hooks in the genesis_after_header area, and it worked! Except that it shows up on the homepage, where I don't want it.
    How can I get it to show up on all other pages, but not on the homepage?
    Thanks so much!

    http://www.fromhispresence.com
    December 22, 2015 at 10:24 pm #174605
    Brad Dalton
    Participant

    Please add your code to a Github Gist or Pastebin and link to it from here.

    Generally, you would add a conditional tag depending on which pages you are referring too. There's single pages and archive pages as well as the blog page.


    Tutorials for StudioPress Themes.

    December 27, 2015 at 12:15 pm #174613
    Jamie
    Member

    So sorry about that. Here's the code in PasteBin.

    Maybe there is a better way; I don't know. I am trying to make a banner on all my pages and blog posts except the homepage, like you can see at AmandaAbella.com/hire-me (which is one of the gallery sites for Cafe Pro, but I'm using Parallax Pro).

    I also tried the instructions here:
    http://www.studiopress.community/topic/parallax-pro-please-help-custom-header-images-on-pages/

    ... but the image did not show up on top that way, and it cut off half the image height on desktop. 🙁

    Thanks so much in advance for any help. I really appreciate it.

  • 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

© 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