Community Forums › Forums › Archived Forums › Design Tips and Tricks › Centric – Remove Footer on Landing Page
Tagged: centric, landing page, remove footer
- This topic has 3 replies, 2 voices, and was last updated 9 years, 3 months ago by Larry James.
-
AuthorPosts
-
October 18, 2015 at 5:05 pm #168410Larry JamesMember
I am using the Centric Theme, I have used the Genesis SImple Hooks Plugin to edit the footer. My problem is that I have created a landing page,, using the Landing Page Template (page_landing.php) but the footer still is shown.
This is the code in the landing page template:
<?php /** * This file adds the Landing template to the Centric Theme. * * @author StudioPress * @package Centric * @subpackage Customizations */ /* Template Name: Landing */ //* Add custom body class to the head add_filter( 'body_class', 'centric_add_body_class' ); function centric_add_body_class( $classes ) { $classes[] = 'centric-pro-landing'; return $classes; } //* Force full width content layout add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); //* Remove site header elements 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 );
How can I completely remove the footer on the landing page here: http://www.durhamwebdesigner.com/free-seo-report/
http://www.durhamwebdesigner.com/free-seo-report/October 18, 2015 at 5:39 pm #168416Brad DaltonParticipantHey Larry
Try this
//* Remove site footer widgets remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' ); //* Remove site footer elements remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
October 18, 2015 at 7:58 pm #168429Larry JamesMemberSorry Brad, I do have the code to remove the footer elements, and it is not working for me.
I guess it didn't copy and paste the whole code. Here is the complete code that I have in my Landing Page template
<?php /** * This file adds the Landing template to the Centric Theme. * * @author StudioPress * @package Centric * @subpackage Customizations */ /* Template Name: Landing */ //* Add custom body class to the head add_filter( 'body_class', 'centric_add_body_class' ); function centric_add_body_class( $classes ) { $classes[] = 'centric-pro-landing'; return $classes; } //* Force full width content layout add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); //* Remove site header elements 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 navigation remove_action( 'genesis_after_header', 'genesis_do_nav' ); //* Remove breadcrumbs remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); //* Remove site footer widgets remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' ); //* Remove site footer elements remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); //* Run the Genesis loop genesis();
October 18, 2015 at 8:05 pm #168431Larry JamesMemberI have solved it Brad. I removed my footer code from Genesis Simple Hooks, and used Genesis Simple Edits instead and it is working now. Thanks for your help.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.