[Support request] Remove Author Link from Blog Post?

Home Forums Support [Support request] Remove Author Link from Blog Post?

Home Forums Support Remove Author Link from Blog Post?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1159891
    Nikola

    Hi,

    How can I remove link and name of Author at the blog page post?

    #1159898
    Leo
    Staff
    Customer Support
    #1159974
    Nikola

    I have added this code:

    add_filter( 'generate_post_author_output', function() {
        printf( ' <span class="byline">%1$s</span>',
            sprintf( '<span class="author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author">%1$s <span class="fn n author-name" itemprop="name">%4$s</span></span>',
                __( 'by','generatepress'),
                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
                esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ),
                get_the_author() ) ),
                esc_html( get_the_author() )
            ) 
        );
    } );
    

    But author link is still visible.
    I flushed cashe.

    #1159977
    Nikola

    Ah sorry, LINK is removed, but there is author name there.
    How can I completely remote it?

    #1160010
    Tom
    Lead Developer
    Lead Developer

    If you don’t want the author to show at all, you can remove it in Customize > Layout > Blog: https://docs.generatepress.com/article/blog-overview/

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