How to remove time stamp on Balance

Community Forums Forums Design Tips and Tricks How to remove time stamp on Balance

This topic is: not resolved

This topic contains 6 replies, has 3 voices, and was last updated by  mariafernandez 2 years, 7 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6193

    mariafernandez
    Participant

    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

     

     

    #6283

    AC
    Blocked

    Wow, 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.

    #6359

    mariafernandez
    Participant

    anitac, 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.

     

    #6434

    briegger
    Participant

    I’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”????

    #6438

    AC
    Blocked

    So here’s Post Meta snippet – http://my.studiopress.com/snippets/post-meta/#remove. Would this be of help for you?

    #6445

    briegger
    Participant

    Thanks 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/

     

    #6603

    mariafernandez
    Participant

    The very simply change to the functions.php file works great.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.