Community Forums › Forums › Archived Forums › Design Tips and Tricks › I want a headerless page within the site
- This topic has 3 replies, 2 voices, and was last updated 11 years, 11 months ago by
TGoedde.
-
AuthorPosts
-
September 22, 2014 at 2:12 pm #125354
TGoedde
MemberHow 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 #125386Brad Dalton
ParticipantUse the page_landing.php template or make your own
You can modify the template using the Code Snippets
September 22, 2014 at 5:55 pm #125391TGoedde
MemberCreating 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 #125477TGoedde
MemberThank 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!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.