Archived topic
How to edit meta info in homepage
8 replies · Started by Fajri on May 11, 2020
Hi, how to move the category info in homepage to position author ?
Like this> https://prnt.sc/sec3t6
Hi there,
you can use this filter to add the categories to the Header Entry Meta:
https://docs.generatepress.com/article/generate_header_entry_meta_items/#examples
I've read the link, where i add the code ?
i've try with code snippet plugin.
Its work, but there are duplicate category info in homepage
And then, i want to make the structure of meta like this :
Category - Date - Author
the separator with strip symbol
up
You can unset the categories in the footer entry meta:
add_filter( 'generate_footer_entry_meta_items', function( $items ) {
return array_diff( $items, [ 'categories' ] );
} );
For the separator, try this:
.entry-header .cat-links:after,
.entry-header .posted-on:after {
content: " - ";
}
For unset the categories in the footer entry, where is the php file code i changes ?
You can add it using the same method you used above: https://docs.generatepress.com/article/adding-php/