How to make author not clickable?

Home Forums Iconic One Pro Support How to make author not clickable?

This topic contains 1 reply, has 2 voices, and was last updated by  Themonic-Support 2 weeks, 5 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5463

    beltoprent
    Participant

    Hi! At the top of post we have a link on post’s author name. Is it possible to remove this link since I don’t need author archive on my site? Just to have a name of author and that’s it. No links on this name… Thanks!

    #5465

    Themonic-Support
    Keymaster

    Line 30 of content.php is

    
    <span class="fn"><?php echo the_author_posts_link(); ?></span>

    Replace it with something like

    
    <span class="fn"><?php echo get_the_author_meta( 'display_name'); ?></span>

    More options and refer: https://developer.wordpress.org/reference/functions/get_the_author_meta/

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to make author not clickable?’ is closed to new replies.