Delete or change ‘Filed under’ & ‘Tagged with’ in Genesis

By default, every Studiopress child theme for Genesis framework display “Filed under” text next to categories and “Tageed with” text next to tags in post meta section. While this is meaningful, few users may want to modify this text. For example: show “Tags” instead of “Tagged with”.

Add following code to functions.php file, this will replace “Filed Under” text with “Category: “ and “Tagged with” text with “Tags: “. Further, you can edit “Category” and “Tags” in the code for any custom text that you may want to display.

1
2
3
4
5
6
7
/* Custom Tags and Categories text www.basicWP.com */
add_filter( 'genesis_post_meta', 'dmp_post_meta_filter' );
function dmp_post_meta_filter($post_meta) {
if (!is_page()) {
$post_meta = '[post_categories sep="/" before="Category: "] [post_tags sep="/" before="Tags: "]';
return $post_meta;
} }

Following code will delete “Filed Under” and “Tagged With” text from display in post meta information on your Studiopress theme.

1
2
3
4
5
6
7
/* Delete text for Tags and Categories www.basicWP.com */
add_filter( 'genesis_post_meta', 'dmp_post_meta_filter' );
function dmp_post_meta_filter($post_meta) {
if (!is_page()) {
$post_meta = '[post_categories sep="/" before=""] [post_tags sep="/" before=""]';
return $post_meta;
} }

Incase above looks difficult for you to implement, then you can use Genesis Simple Edits plugin. It allows editing of three most commonly modified areas in any Genesis theme: the post-info (byline), the post-meta and the footer area.

SHARE

Speak Your Mind

*

Subscribe to our mailing list

* indicates required
Close