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

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full 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

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.