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

WP SITES

2551

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Register
  • Videos
  • Log in

4 Ways To Remove, Hide or Customize Specific Post Info Links in Genesis

Brian Gardner has already provided PHP code you can use to remove the post info links from single posts. The code snippets also include code for customizing the post info links.

But what if you don’t want to remove the post info links from all categories and posts? What if you want to keep them displayed on one or more categories but remove them from others?

In this tutorial, you’ll learn how to remove specific post info links from specific categories and keep the links displayed on posts in other categories using conditional tags. And you’ll also learn how to hide post info links using CSS code and remove them completely using plugins.

Note: The PHP code below may not work if you also activate the Genesis Simple Edits plugin

PHP Code

Here’s the code which is already provided by StudioPress:

Note: For ALL PHP code snippets on this post, you need to remove the shortcodes for the post info you do NOT want displayed. Example: Remove the author shortcode if you want to remove the author but keep the date and comments link displayed

Here’s an example. This code removes the date and author but leaves the comment and edit link in the post info. You can see the shortcodes for both have been removed from the code:

Here’s the code which includes all the shortcodes so it will not remove any unless you remove theme from the code based on your own preferences.

And here’s the code i have written which enables you to remove the post info from posts in all categories but keep it displayed on posts in one category, which in this example, is the news category.

Remove Post Info Specific Pages

This code will remove the post info from 2 pages using the post i.d for each page in an array. You can change the i.d’s and add more to the array separated by a comma.

Remove All Post Info

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

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.

Remove Post Info Specific Pages

But wait!

That’s not the only way to remove post info links from Genesis.

CSS Code (XHTML)

You could also hide them using CSS code.

CSS Code (HTML 5)

Hide all Post Info Site Wide

.entry-meta {
display: none;
}

Hide the Date Site Wide

.entry-time  {
display: none;
}

Hide The Author Name Site Wide

.entry-author {
display: none;
}

Note: The above code will not hide the by text before the author name so you will need to use PHP code for this.

.entry-comments-link {
display: none;
}

You can also use these classes in the same rule like this:

.entry-comments-link,
.entry-time {
display: none;
}

Or you can use CSS code to hide the post info from specific pages like this:

.home .entry-comments-link {
display: none;
}

The above code hides the comments link from the home page only.

Genesis Simple Hooks Plugin

Another option is to unhook them using the Genesis Simple Hooks plugin.

Unhook genesis_post_info using simple hooks

Genesis Simple Edits Plugin

The fourth way to remove post info links is to install the Genesis Simple Edits plugin and remove the shortcodes. This clearly is the easiest method for beginners however it removes them site wide.

genesis simple edits

In the screen shot above, you can see 4 shortcodes which output the 4 types of post info links:

  • Post date
  • Post Author Posts Link
  • Post Comments
  • Post Edit

Removing Post Meta & Post Info

  • Here’s a post showing different ways to remove post meta rather than post info.
  • And here’s another post which shows you 3 ways to remove post meta & post info from Genesis.

Replacing Post Info Shortcodes With HTML Links

You can also remove a shortcode and replace it with a custom HTML link like this:

Conclusion

Is there another way to customize, remove completely or hide post info links in Genesis?

I don’t think so as we have covered all bases in this tutorial.

Here’s some plugins which you may find useful when customizing WordPress.

Related Tutorials

  • Conditional Genesis Post Info
  • 2 Ways To Modify The Genesis post_date Shortcode
  • 3 Ways To Move Post Meta Below Post Info in Genesis
  • Checkbox To Add or Remove Post Info Shortcodes

Entry Meta

Primary Sidebar

How it works :

I write tutorials for you which include the custom code you need for a flat $49.99 fee. You get 1 tutorial request as well as access to all 2500+ existing tutorials for 1 month.

  • Premium Members Only
  • Access Premium Tutorials
  • Support