Community Forums › Forums › Design Tips and Tricks › How to remove time stamp on Balance
Tagged: balance theme, delete date, remove date, remove date stamp
This topic contains 6 replies, has 3 voices, and was last updated by mariafernandez 5 months ago.
-
AuthorPosts
-
December 19, 2012 at 10:28 am #6193
My blog is not time sensitive, so I’ve decided to show no date on blog posts. This is what I’ve done to remove the date stamp on the Balance theme:
Under Editor / functions.php, I”ve duplicated the line:
$post_info = ‘[post_author_posts_link] [post_date]‘;
Then I’ve commented one of them:
/** $post_info = ‘[post_author_posts_link] [post_date]‘; */
and in the active one I’ve deleted:
[post_date]
So I now have:
/** Customize the post info function */
add_filter( ‘genesis_post_info’, ‘post_info_filter’ );
function post_info_filter($post_info) {
if (!is_page()) {
/** $post_info = ‘[post_author_posts_link] [post_date]‘; */
$post_info = ‘[post_author_posts_link]‘;
return $post_info;
}
}This removes the time stamp cleanly.
I’ve posted this in case others want to remove their date stamps too.
Maria
December 19, 2012 at 5:23 pm #6283Wow, that’s a lot of work. Doesn’t the Genesis Simple Edits do the same thing without modifying the code – http://wordpress.org/extend/plugins/genesis-simple-edits? I am trying to learn which way is better – modifying code or just using plugins to make things work.
Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 20, 2012 at 6:32 am #6359anitac, thanks.
Can anyone confirm whether using the Simple Edits plugin is better than doing php changes? I’m thinking long term and possible problems with upgrades. Thanks.
December 20, 2012 at 11:12 am #6434I’m wondering the same thing. I’ve installed the plugin but how do I use the short code to say “don’t post this information”????
December 20, 2012 at 11:22 am #6438So here’s Post Meta snippet – http://my.studiopress.com/snippets/post-meta/#remove. Would this be of help for you?
Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 20, 2012 at 11:37 am #6445Thanks Anitac! I entered that under my child theme in the functions.php file but it didn’t seem to change anything. I cleared my cache (learned that lesson a while back!!) and also tried in another browser but it still didn’t seem to change it?
This is the code I used:
/** Remove the post meta function */
remove_action( ‘genesis_after_post_content’, ‘genesis_post_meta’ );http://k2smarketing.com/cmacco/flagship-athletic-club/
December 21, 2012 at 4:27 am #6603The very simply change to the functions.php file works great.
-
AuthorPosts
You must be logged in to reply to this topic.