Archived topic
How to remove nav next/prev and move category beside my social share
5 replies · Started by Iswan on September 2, 2020
Hai Generatepress....
I want to remove nav next/prev link and move the category icon beside my social share. The display responsif on mobile.
Plis check my blog
Hi there,
go to Customizer > Layout > Blog --> Single (Tab) and uncheck Display post navigation.
You can use this filter to add the Category terms in the entry meta:
https://docs.generatepress.com/article/generate_header_entry_meta_items/
Positioning it separately beside the Social icons may no be possible.
Thanks David
The Nav Link is solved, but now after i use the entry meta, i have 2 category now. Before content and after content.
I want to move the category to before content with the icon folder.
Plis check my site...
Thx David
To show the icon add this CSS:
.entry-header .cat-links:before{
display: inline-block;
}
To remove the Cat terms from footer meta add this PHP Snippet:
add_filter( 'generate_footer_entry_meta_items', function( $items ) {
return array_diff( $items, [ 'categories' ] );
} );
Thanks David its works
You're welcome