Avada Forums Community Forum how to deactivate the authors name-link in blog

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • juergentraeger
    Participant
    Post count: 6

    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

    coolplush
    Participant
    Post count: 4

    did you found a solution?

    marklchaves
    Participant
    Post count: 873

    I don’t recommend this practise. But, if you must.

    
    
    .fn a {
        cursor: not-allowed;
        pointer-events: none;
    }
    
    
    Polka
    Participant
    Post count: 3

    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()

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.