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 1 year, 8 months ago.

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

    mariafernandez
    Participant
    Post count: 18

    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

    Anita
    Participant
    Post count: 7560

    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.


    When asking for help, please provide a link or screen shot showing your problem!
    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me!

    #6359

    mariafernandez
    Participant
    Post count: 18

    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
    Post count: 23

    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

    Anita
    Participant
    Post count: 7560

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


    When asking for help, please provide a link or screen shot showing your problem!
    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me!

    #6445

    briegger
    Participant
    Post count: 23

    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
    Post count: 18

    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.