Hi,
How to remove the link of author totally, not css hide, but in the html code?
I just need the text, don’t need the link on it
Hey yundian,
Thank you for the inquiry.
You can add this filter in the functions.php file to disable the author info.
add_filter("avf_show_author_meta", "__return_false" );
OR edit the includes > loop-index.php file and remove this block of code starting from line 489.
/**
* Allow to change theme options setting for certain posts
*
* @since 4.8.8
* @param boolean $show_author_meta
* @param string $context
* @return boolean
*/
if( true === apply_filters( 'avf_show_author_meta', 'blog-meta-author' == avia_get_option( 'blog-meta-author' ), 'loop-index' ) )
{
$meta_author = '<span class="blog-author minor-meta">' . __( 'by', 'avia_framework' ) . ' ';
$meta_author .= '<span class="entry-author-link" ' . avia_markup_helper( array( 'context' => 'author_name', 'echo' => false ) ) . '>';
$meta_author .= '<span class="author">';
$meta_author .= '<span class="fn">';
$meta_author .= get_the_author_posts_link();
$meta_author .= '</span>';
$meta_author .= '</span>';
$meta_author .= '</span>';
$meta_author .= '</span>';
$meta_info['author'] = $meta_author;
}
Best regards,
Ismael
Hi,
This code is not work: add_filter(“avf_show_author_meta”, “__return_false” );
And, I just want to remove the link, not all the text
please see it in the page: https://www.yundianseo.com/website/
Have find a way to resolve it, you can close it now
Hi yundian,
We’re glad that you were able to resolve the issue.
We will be closing this thread then.
Thanks for using Enfold and have a great day!
Best regards,
Nikko