Avada › Forums › Community Forum › how to deactivate the authors name-link in blog
Tagged: authors name-link, blog-preview
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
hello there,
i want to deactivate the authors name-link in the blog-preview, where the excerpts are.
i want that the user could see the Name (of the author), but shouldnt can klick on it, to get redirected to the authors page.is there a possibility to deactivate the link ?
thanks for your answer, jürgen
I don’t recommend this practise. But, if you must.
.fn a { cursor: not-allowed; pointer-events: none; }
That’s ugly and not SEO friendly.
Do instead:
function sacar_link_autor( $link ) { $link = get_the_author(); return $link; } add_action( 'the_author_posts_link', 'sacar_link_autor' );
Take in mind, you’ll remove all author links in the funtion the_author_posts_link()
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Was this topic helpful?