Archived topic
Display category meta with categories icon under date and author
5 replies · Started by Lorenzo on April 15, 2021
Viewing posts 1–6 of 6
Hi!
I need display category meta with categories icon under date and author in single post and in archive.
Like this:

I have tried with this:
add_filter( 'generate_header_entry_meta_items', function() {
return array(
'author',
'categories',
'date',
);
} );
add_filter( 'generate_footer_entry_meta_items', function( $items ) {
return array_diff( $items, [ 'categories' ] );
} );
But It isn't that I need.
Thanks!
Hi there,
can you share a link to your site with that code added?
I share a private link.
Thanks!
Hi there,
Can you set the icon to SVG on Appearance > Customize > General?
You then add this CSS:
.entry-header .entry-meta span.cat-links {
width: 100%;
display: block;
}
.entry-header .gp-icon {
display: inline;
}
Let us know how it goes.
Thanks a lot!
No problem. :)
This archived topic is closed to new replies.