Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #476142

    Hi, I’m trying to turn off the link to the author for the blog posts… I found this in the sing.php file:

    echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." ";
                        echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>';
                        echo '<span class="vcard author"><span class="fn">';
                        the_author_posts_link();
                        echo '</span></span>';
                        echo '</span>';
                        echo '</span>';
                    echo '</span>';
                echo '</header>';

    But if I add // to the lines it takes out both the name and the link. We still want the author name, just not the link. Can you help? Thanks!

    #476252

    Hey janetgot!

    Instead please backup then navigate to the (wp-content>themes>enfold>includes) folder and open loop-index.php.

    You should see the below code in line 190

    the_author_posts_link();
    
    

    Replace it with the below code to show the author name without a link:

    the_author();
    
    

    Cheers!
    Dake

    #476597

    You rock, thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Disable Author Link in Blog Posts’ is closed to new replies.