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

WP SITES

2966

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Subscriptions
  • Access
  • Log in

How To Remove Post Category Links Conditionally

The code in this tutorial shows you how to modify the category links in the entry footer using conditional tags.

The links are generated by the post categories shortcode.

In this example, the code removes the links from the post category names on the front page only while all other pages/posts are unchanged and linkable back to each category archive page.

Front page example showing link removed from post category :

Category Link Removed

Single post example showing default category name linked :

Category name linked

Demo Video #

Shows the category link on the front page removed and linked on all other pages including single posts.

Works in any Genesis child theme.

Installation Steps #

There’s only 1 step :

Copy the PHP code to the end of your child themes functions.php file.

Register for full access

Related Code Snippets

  • Modify Genesis Post Categories Shortcode

Entry Meta

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Code written by Brad Dalton specialist for Genesis & WooCommerce.

Advertise · WPEngine · Genesis · Log in

  • Account
  • Consulting
  • Post Tags
  • Contact
  • Terms
  • Monthly Membership
  • Yearly Subscriptions
  • Log in
 

Loading Comments...