• Hi,

    For now I removed the link to the author page by redeclaring the function?astra_post_author() in functions.php of my child theme.

    Is there a better way to achieve this?

    Thanks

Viewing 1 replies (of 1 total)
  • Hello @nicoter,

    To remove the author link from the frontend you can use the author_link filter. Please add the following code to your child theme’s function.php file.

    function author_page_redirect( $link ) {
        $link = '';
        return $link;
    }
    add_action( 'author_link', 'author_page_redirect' );

    And to remove the click functionality from the author link you can add the following CSS to your child theme’s style.css file.

    .posted-by.author a {
         pointer-events: none;
    }

    I hope that helps. Let me know how it goes.

    Regards,
    Sweta

Viewing 1 replies (of 1 total)
  • The topic ‘Post meta: Remove link to author page’ is closed to new replies.