The Stiz Media, LLC

Making your website work for you

  • Styles for Genesis
    • FAQs
  • Cart
  • My Account
  • Home
  • Web Design
  • Portfolio
  • Resources
  • Blog
  • Contact

Powerful websites, with style.

Home » Blog » Remove The Comma Between Categories And Tags In Genesis

Remove The Comma Between Categories And Tags In Genesis

June 19, 2013 Andhi 4 Comments

I often like to style my category and/or tag list differently then just a comma separated list (see the bottom of this post for an example). I’ve always done a bit of hacking using the_tags or the_category, which is okay… but not the fast, simple, and Genesis (affiliate link) way.

The Genesis Way

Enter Genesis Shortcodes.

There is simple code already available on customizing the meta. Below is a gist from Brian Gardner:

Notice the “post_categories” & “post_tags” shortcodes in there? Genesis does all of the dirty work for us here. Now, go back to the shortcode reference I linked to earlier. Those shortcodes have all sorts of attributes available in them.

Remove The Comma

Removing the comma is as simple as using the “sep” attribute. Sep is short for “separator”, naturally.

Here is the code, which removes the separator from the categories and the tags.

I know, I know… seems too easy right? Glad I could help 😉

Related Posts

  • Remove Avatar
    Remove Avatar from Genesis Author Box
  • Latent - Genesis Child Theme sneak peak
    Sneak Peak of the new "Latent" child theme for Genesis 2.0
  • Styles - Genesis
    How to customize any Genesis child theme without code

Genesis Framework, Tutorials Categories, entry-meta, Tags

‹ Using Custom Post Types And Meta Fields To “Client-Proof” Adding New Content
Use WP_Query To Alter The Posts Per Page Of A Custom Taxonomy Term Archive Of A Custom Post Type ›

Try The Most Powerful Genesis Child Theme Ever Created

Mai Theme is the most customizable Genesis child theme (and plugin!) available. Check it out now!

Learn More @ MaiTheme.com

Our posts, directly to your inbox

Comments

  1. Robert Barnes says

    August 6, 2013 at 3:00 am

    Hi Mike – Thanks for this. Stupid question, but where do I put that code? I use the Dynamik Theme (http://cobaltapps.com/downloads/dynamik-website-builder/) and presumed it would be in their custom functions, but that didn’t work. I understand you probably don’t know this theme, so where would I put the code if I was just using plain Genesis?

    I also use the Simple Hooks plugin if that makes it easier.

    Many thanks in advance.

    Cheers, Rob

    Reply
  2. Mike Hemberger says

    August 8, 2013 at 8:58 am

    @Rob – You should put this code in whatever template you are trying to modify… If i wanted to remove the comma for all single posts, I would put it in single.php. To remove it from post archives put it in archive.php.

    If you want to remove the comma globally throughout the whole site, put it in your functions.php file.

    Let me know how it goes!

    Reply
    • Robert Barnes says

      August 18, 2013 at 12:28 am

      Thanks Mike – I’m still waiting for response from my theme’s support team…

      Reply

Leave a Reply Cancel reply

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

Our posts, directly to your inbox


Howdy, I'm Mike Hemberger. I like to build nice websites and web apps with WordPress and Genesis Framework.

I'm passionate about everything I do, and it resonates in all of my work.

Feel free to email, and you'll be speaking directly with me.

Recent Posts

Restful P2P Example

Create Posts 2 Posts ‘connections’ with the WordPress Rest API

EA Share Count SMS button

Add SMS share button to EA Share Count plugin

ACF Extras

ACF Extras officially launched! A community of code snippets and field groups

Remove Items from TinyMCE editor

Remove Buttons/Items From The WordPress TinyMCE Editor

  • My Account
  • Affiliate Area
  • Log In|Log Out
  • GitHub
  • Instagram
  • Twitter
  • YouTube

Copyright © 2025 · The Stiz Media, LLC · All Rights Reserved