• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

3 Ways To Remove Post Meta & Post Info Links

If you’re a minimalist type of designer, you may want to remove the default post meta and post info links which are displayed before and after your content on single posts and archive pages.

With the Genesis theme framework, this is easily done.

If you’re not use Genesis, i have a solution for you as well at the end of the post.

Firstly, lets take a quick look at exactly what i mean by post meta and post info.

Post Info

You’ll find this post info just above all post titles:

Post Info

You can easily remove this data which normally displays the date, author and link to comment.

Post Meta

After your posts, you’ll find the Post Meta data.

Post Meta

You can also easily remove the post meta data like the category the post is filed under and the tag the post has been grouped with.

There’s 3 ways you can remove and customize the post meta and post info data that is displayed by default before and after your content on single posts:

  1. Using the Genesis Simple Edits Plugin
  2. Using the Genesis Simple Hooks Plugin
  3. Using PHP or CSS code

Simple Edits

This plugin enables you to add and remove shortcodes which display links you want to keep or remove from your posts.

Genesis Simple Edits

Simply remove or add the tags which create each specific link from this screen.

Simple Hooks

Once you install this plugin, you’ll find a list of hooks with boxes underneath each hook and the location they hook into.

Scroll down to the Post/Page hooks and look for these 2 hooks:

genesis_before_post_content - Unhook genesis_post_info() function from this hook?

This hook executes immediately before the genesis_post_content hook for each post/page

genesis_after_post_content Hook - Unhook genesis_post_meta() function from this hook?

This hook executes immediately after the genesis_post_content hook for each post/page

All you need to do is check the boxes to unhook the post meta and post info links which are displayed by default before and after your post content.

Using CSS To Remove Meta Data

Because there’s thousands of themes now, its impossible to list solutions for all of them.

However, non Genesis users can use CSS code to easily hide post meta entry data and other info links.

In Twenty Twelve, the post meta is actually named entry-meta and can be hidden by adding this code to your child themes style.css file

.entry-meta {
display:none !important;
}

If you’re not using Twenty Twelve, i suggest you use a free tool like Firebug to find out the class your theme uses for post meta and replace the selector using the CSS above.

Removes all the post info & post meta from the home page.

.home .entry-meta { 
display: none; 
}

Using PHP Code

Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

Remove Post Meta From (home) Posts Page

Remove Post Info From (home) Posts Page

Remove All Post Info – HTML 5

This code can be added to your functions file to remove all the post info from your entire site or added to a template file to remove only on pages/posts using the template.

Remove All Post Meta – HTML 5

This code can be added to your functions file to remove all the post meta from your entire site or added to a template file to remove only on pages/posts using the template.

Plugins

There are also plugins (Thanks SheriG) which remove this type of data from your database.

Some of them remove all the post meta data from your database permanently which can be a problem if you ever change your mind and don’t have a full DB backup.

Better to remove/hide the display of the links and other info rather than remove all from your DB entirely i think.

Here’s a post specifically about how to remove post meta on different pages.

More Sophisticated Solutions

  • Add or Remove Post Info Entry Meta on Per Post Basis

Entry Meta

Reader Interactions

Comments

  1. philr says

    March 3, 2016 at 1:29 am

    The Simple Hooks looks ideal, but I cannot find those before post and after post hooks. Are they still used in Altitude Pro theme?

    Log in to Reply
    • Brad Dalton says

      March 3, 2016 at 1:30 am

      They’re in all of the old XHTML child themes. Here’s the new ones for HTML 5 themes http://wpsites.net/genesis-hooks/

      Log in to Reply
  2. Tony says

    May 9, 2014 at 10:11 am

    Nice Work and applied i got answer.

    Log in to Reply
  3. Cane Jason says

    February 19, 2014 at 6:05 pm

    Can you please check my site. Actually i’m unable to remove 16 Sep 2011
    Comments Off
    Tweet this
    by admin

    from my site. It displays on every page. Please help me.

    Log in to Reply
    • Brad Dalton says

      February 20, 2014 at 2:35 am

      You have several options.

      You can use:

      • The Genesis Simple Edits plugin
      • CSS to display: none
      • Or PHP to modify the default output of the post info using a filter

      Please try these solutions http://wpsites.net/web-design/modify-post-info-genesis/

      Log in to Reply
      • cane jason says

        February 20, 2014 at 7:01 am

        Hello Brad,

        Thank you so much. I used CSS to display: none and now everything is ok. 🙂

        Log in to Reply
  4. Andrea says

    January 6, 2014 at 4:31 am

    Hi!
    How can I remove it from category pages only (using Genesis)?

    Log in to Reply
    • Brad Dalton says

      January 6, 2014 at 12:05 pm

      Hello Andrea

      Use the is_category() conditonal tag after the function name in the code.

      Log in to Reply
      • Andrea says

        January 6, 2014 at 6:12 pm

        Thank you so much!

        Log in to Reply
  5. amit says

    December 30, 2013 at 4:43 pm

    I would like to remove both post info and post meta from my entire site maybe !
    Will it affect schema markup about author bios and published dates if post info and post meta are unhooked ?

    Log in to Reply
    • Brad Dalton says

      December 30, 2013 at 4:51 pm

      Hello Amit

      That would be very easy to test however there’s an easier solution.

      Use CSS to hide your entry meta ( post info and post meta )

      .entry-meta { 
      display: none; 
      }

      This way it remains in the source code.

      Log in to Reply
  6. Mudassar says

    December 12, 2013 at 7:27 pm

    Very precise and useful. How about if we remove the author and comment and keep the date on home page?

    Log in to Reply
    • Brad Dalton says

      December 12, 2013 at 10:13 pm

      You can do that using PHP or CSS code. Example:

      .home .post-info {
      display: none;
      }

      Use Firebug to find the classes for the post info you want to hide.

      Log in to Reply
  7. michelle says

    November 4, 2013 at 12:33 pm

    Thank you for the information, it was very useful 🙂

    Log in to Reply
  8. SheriG says

    January 4, 2013 at 2:27 am

    For those of us not using Genesis, there are a couple of useful plugins that can help. The first is WP Date Remover, which successfully removes the date from most themes:

    Another one is No Page Comments, which lets you remove comments from pages, posts, etc.

    Finally, to remove the Meta Data from posts, you can try Post Meta Manager:

    http://wordpress.org/extend/plugins/post-meta-manager/

    Hope that helps someone!

    Sheri

    Log in to Reply
    • Brad Dalton says

      January 4, 2013 at 4:18 am

      Thanks very much for the tips Sheri. Sorry you can’t use bitly links in the comments because Bitly can be a problem i have already written about.

      I have tested the post meta manager plugin and know Andrew Norcross who is an excellent WordPress Developer.

      Cheers!

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.