• 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

genesis_after_header div to pages only

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 › genesis_after_header div to pages only

This topic is: resolved
  • This topic has 2 replies, 1 voice, and was last updated 12 years, 9 months ago by Nomad.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 8, 2013 at 6:18 am #24969
    Nomad
    Member

    Hi ...I am new to this and still getting the hang of it but need some help pls. I am trying to add a div below the header using simple hooks but it must only appear on pages and not the static home page (am using  genesis_after_header)

    thanks for your time

    March 8, 2013 at 8:19 am #24983
    Nomad
    Member

    The site consists of only pages....no posts and i need to add a div that displays an image 100% width on all internal pages below the header but not on the home page. I am using simple hooks to add other divs but am not sure how to add it for pages only....and not home page..... I am sure there is some kinda "if else" condition i need to use but not sure ...have been toying with <?php is_page(); ?> but cannot seem to get it right. Would appreciate any help...thanks

    March 8, 2013 at 9:04 am #24992
    Nomad
    Member

    Figured it out.....

     

    <?php
    if(is_page()) { ?>
    <div><h3>figured it out</h3></div>
    <?php }
    ?>

     

     

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