Site logo

[Support request] How to edit meta info in homepage

Home Forums Support [Support request] How to edit meta info in homepage

Home Forums Support How to edit meta info in homepage

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1278622
    Fajri

    Hi, how to move the category info in homepage to position author ?

    Like this> https://prnt.sc/sec3t6

    #1279057
    David
    Staff
    Customer Support

    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

    #1279777
    Fajri

    I’ve read the link, where i add the code ?

    #1279825
    Leo
    Staff
    Customer Support
    #1280281
    Fajri

    i’ve try with code snippet plugin.

    Its work, but there are duplicate category info in homepage

    https://prnt.sc/sf4ge0

    And then, i want to make the structure of meta like this :

    Category – Date – Author

    the separator with strip symbol

    #1281148
    Fajri

    up

    #1281265
    Tom
    Lead Developer
    Lead Developer

    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: " - ";
    }
    #1281393
    Fajri

    For unset the categories in the footer entry, where is the php file code i changes ?

    #1281719
    Tom
    Lead Developer
    Lead Developer

    You can add it using the same method you used above: https://docs.generatepress.com/article/adding-php/

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.