• 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

I want a headerless page within the site

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 › I want a headerless page within the site

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 11 years, 11 months ago by TGoedde.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 22, 2014 at 2:12 pm #125354
    TGoedde
    Member

    How can I create an internal hidden page within the Genesis Enterprise theme that doesn't have any header information at all. Just a page with content but no way around the site or any other content or footer etc. Just a page.

    http://www.cascadepest.com/top-50-rat-and-rodent-control-companies/
    September 22, 2014 at 5:31 pm #125386
    Brad Dalton
    Participant

    Use the page_landing.php template or make your own

    You can modify the template using the Code Snippets


    Tutorials for StudioPress Themes.

    September 22, 2014 at 5:55 pm #125391
    TGoedde
    Member

    Creating a "landing page" will not effect the rest of the site will it? I am assuming I would create this and then on the page dashboard under PAGE ATTRIBUTES then TEMPLATE I will find it in the list. No? Or will it be under the parent menu?

    September 23, 2014 at 3:04 pm #125477
    TGoedde
    Member

    Thank you for the tips. I used the code from the link to create a noheader_custom.php file. That worked in part.
    http://www.cascadepest.com/top-50-rat-and-rodent-control-companies/
    I tweaked the code slightly to try to remove all widgets, but as you can see, the side bar widgets and lower 3 widgets and footer are still showing. I want this page to be void of all company information that is shown in those areas. It is purely a marketing page to help SEO rankings by creating cross links.

    Can you alter this code to get rid of that for me?

    <?php
    /**
    * This file adds the Custom Landing template to the Metro Theme.
    *
    * @author Brad Dalton
    * @package Generate
    * @subpackage Customizations
    */

    /*
    Template Name: No Header Pages
    */

    // Add custom body class to the head
    add_filter( 'body_class', 'metro_add_body_class' );
    function metro_add_body_class( $classes ) {
    $classes[] = 'custom-landing';
    return $classes;
    }

    // Remove header, navigation, breadcrumbs, footer widgets, footer, widgets
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    remove_action( 'genesis_before', 'genesis_do_subnav' );
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    remove_action( 'genesis_after', 'genesis_footer_widget_areas' );
    remove_action( 'genesis_after', 'genesis_footer_markup_open', 11 );
    remove_action( 'genesis_after', 'genesis_do_footer', 12 );
    remove_action( 'genesis_after', 'genesis_footer_markup_close', 13 );

    genesis();

    Thanks so much!

  • 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

© 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