Community Forums › Forums › Archived Forums › Design Tips and Tricks › Custom Post Template – Post Meta and Info
This topic is: not resolved
- This topic has 3 replies, 2 voices, and was last updated 8 years, 4 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
December 2, 2015 at 12:38 pm #172489christianmyrickMember
I have created a custom post template utilizing the 'Landing' page template. I was not having any luck utilizing the Code Snippets to remove the post meta and info from this template. What I want is just the post title and content - no date or footer.
Here is what I added to "single_landing.php" that removed everything except the date:
//* Remove the entry meta in the entry header remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); //* Remove the entry meta in the entry footer remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
Is there a reason why the date is still appearing?
Here is the entire code for the page:
http://72.34.44.25/~singingriverheal/featured/now-offering-discounted-mammograms/<?php /** * This file adds the Landing template to the Education Pro Theme. * * @author StudioPress * @package Education Pro * @subpackage Customizations */ /* Single Post Template: Landing */ //* Add landing body class to the head add_filter( 'body_class', 'education_add_body_class' ); function education_add_body_class( $classes ) { $classes[] = 'education-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_before_header', 'genesis_do_nav' ); remove_action( 'genesis_footer', 'genesis_do_subnav', 7 ); //* 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 ); //* Remove the entry meta in the entry header remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); //* Remove the entry meta in the entry footer remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); //* Run the Genesis loop genesis();
December 2, 2015 at 8:52 pm #172552Brad DaltonParticipantDecember 3, 2015 at 8:47 am #172597christianmyrickMemberYes, I do. If I edit those options, it affects the entire site.
December 3, 2015 at 7:38 pm #172661Brad DaltonParticipantThe code may not work with the plugin active so you can add the code to a template or use a conditional tag with the code.
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.