-
AuthorPosts
-
January 25, 2023 at 4:28 am #1395040
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
January 25, 2023 at 5:20 am #1395050Hey 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,
IsmaelJanuary 25, 2023 at 5:32 am #1395054Hi,
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/
January 25, 2023 at 6:33 am #1395057Have find a way to resolve it, you can close it now
January 25, 2023 at 7:59 am #1395071Hi 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 -
AuthorPosts
- The topic ‘How to remove the author link’ is closed to new replies.
