Community Forums › Forums › Archived Forums › General Discussion › Show Blog date on certain pages
Tagged: blog date
- This topic has 4 replies, 3 voices, and was last updated 12 years, 7 months ago by
nutsandbolts.
-
AuthorPosts
-
October 22, 2013 at 8:45 pm #68317
SimplyAA
MemberMine is more of a general question for any theme. I have several pages that I would like to put blog posts on. I want the blog date and category to show on some of the pages, but not on others. I know how to remove the date and category but how can I limit that to specific pages?
/** Remove post info */ remove_action( 'genesis_before_post_content', 'genesis_post_info' ); //* Remove the post meta function remove_action( 'genesis_after_post_content', 'genesis_post_meta' );Thanks for any help.
Angela
October 22, 2013 at 9:47 pm #68332nutsandbolts
MemberYou can use a conditional for the specific post IDs, similar to this tutorial: http://www.blogence.com/remove-post-info-and-post-meta-from-category-and-tag-pages-genesis/ (That's not an exact fit, but if you read up on conditional tags you'll be able to pick and choose where the post meta and post info show up.)
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+October 23, 2013 at 6:44 pm #68520SimplyAA
MemberThanks so much. That article led me to this article and it worked perfectly! Thanks again.
http://wpsites.net/web-design/modify-post-info-genesis/
Angela
November 7, 2013 at 7:12 pm #71581CathyEarle
MemberI'm using the minimum pro theme and trying to to the same thing (remove date and category from specific categories) but nothing is working.
I have tried removing them from all the pages using the code below but no success:
/** Remove post info */ remove_action( 'genesis_before_post_content', 'genesis_post_info' ); //* Remove the post meta function remove_action( 'genesis_after_post_content', 'genesis_post_meta' );Also tried the following link - no luck.
http://wpsites.net/web-design/remove-post-meta-pages-posts-archives/Tried adding to CSS: no luck:
`// Removes Post Info From Team Page
.category-31 .post-meta,
.categories,
.tags {
display: none !important;
}For now I've resorted to removing them from Genesis Simple Edits but it doesn't resolve my issue with only wanting to remove them from certain category pages.
Suggestions?
November 7, 2013 at 7:14 pm #71582nutsandbolts
MemberMinimum Pro is HTML5, so the codes you listed are using the wrong hooks. Try these:
//* Remove post info */ remove_action( 'genesis_entry_header', 'genesis_post_info' ); //* Remove the post meta function remove_action( 'genesis_entry_header', 'genesis_post_meta' );
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+ -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.