metro theme hide date in post

Community Forums Forums General Discussion metro theme hide date in post

This topic is: resolved

Tagged: ,

This topic contains 4 replies, has 3 voices, and was last updated by  RobG 6 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #83270

    johnbogs
    Participant
    Post count: 16

    I have the metro theme and I’m trying to find how to hide the date in all the posts.

    I was able to hide it in the posts associated with the widgets and that handled teh home page but the date still appears in teh posts.

    Suggestion?

    thank you!

    http://www.horsemoms.com/are-your-horse-treats-safe/
    #83275

    Ginger Coolidge
    Member
    Post count: 4

    Hello, I do not know where to edit this in the code, but I believe with the Genesis Simple Edits plug-in you can remove the date from your posts byline. I’m new here so if I’m wrong please don’t hold it against me :-)


    Best Regards,

    Ginger
    @817Realty

    #83276

    RobG
    Participant
    Post count: 1036

    Normally all you would need to do is remove the short codes for the date in your function.php like this ( [ post_date ] )
    I did install the Metro pro theme on my demo site but did not see this function for the date and other functions strange.

    Add the following php codes to your function and it will hide the date from displaying. Try to display this snippet some were in between your function codes so that it will not break anything on your site. I tested this snippet and it work like a charm. Hope this helps

    [php]
    // Remove post date in Genesis post info

    add_filter( ‘genesis_post_info’, ‘post_info_filter’ );

    function post_info_filter($post_info) {
    if ( !is_page() ) {
    $post_info = ‘By [post_author_posts_link] [post_comments] [post_edit]‘;
    return $post_info;
    }}

    [/php]


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

    • This reply was modified 6 months, 2 weeks ago by  RobG.
    • This reply was modified 6 months, 2 weeks ago by  RobG.
    #83304

    johnbogs
    Participant
    Post count: 16

    I appreciate the effort txgspice.

    And Rob… AWESOME work!

    Thank you.

    #83372

    RobG
    Participant
    Post count: 1036

    You’re very welcome John glad I could help


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

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

You must be logged in to reply to this topic.