• 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

Removing Division on Landing Page and Best Practices

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 › Removing Division on Landing Page and Best Practices

This topic is: not resolved

Tagged: hooks

  • This topic has 1 reply, 2 voices, and was last updated 13 years, 2 months ago by cdils.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 16, 2013 at 12:18 pm #12353
    WolfgangSepp
    Member

    The support desk referred me to this forum for my questions, which I have 2.

    I added the following code to my functions.php file:


    // Add Feature Area after header

    add_action( 'genesis_after_header', 'rr_include_feature_area' );

    function rr_include_feature_area() {

    require(CHILD_DIR.'/rr_feature_area.php');

    }

    The rr_feature_area.php file is just HTML code for an image and a form.

    My first question is...

    I want my feature area on most of my pages except for a landing page that I modeled after Brian Gardner's (http://www.briangardner.com/create-landing-page/). What is the best way of removing my feature area on just that page?

    My second question is if it is a good practice to reference another php file from within the functions.php file or should I just add the code in to functions.php?

    Thank you,
    Wolfgang

    January 22, 2013 at 5:29 pm #13906
    cdils
    Participant

    Hi Wolfgang,

    I'm not sure I totally understand your first question. I *think* if you're using a landing page template (a la Brian's tutorial), it shouldn't pick up your featured area?

    But to your second question, there is nothing "wrong" with referencing another php file from your functions.php. I find it a nice way to maintain custom code separately from functions.php (I like to switch themes a lot!). I think it probably boils down to a matter of  developer preference, but to my knowledge, you are fine to approach it either way.

    Cheers,

    Carrie

     


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

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

© 2026 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