• Resolved Vipul Behl

    (@vipulbehl94)


    How to enable author links in this theme? I want people to be able to click on authors name (on clicking the user would be taken to author website). Here i am talking about the author description that appears at the end of each post in this theme. Can anyone help me with this?

Viewing 1 replies (of 1 total)
  • Thread Starter Vipul Behl

    (@vipulbehl94)

    I found the answer to it too, for anyone who is searching for the same here is how i did it.

    Go to theme editor and open the function.php file.
    Find the function thefunk_authorbox();

    replace the complete function with the following code

    `function thefunk_authorbox()
    {
    echo ‘<section class=”author-box”>’ . “\n”;
    global $post;

    global $current_user;
    get_currentuserinfo();

    echo get_avatar($post->post_author, 70);
    echo ‘<h4 class=”author-box-title”>’ . __( ‘About’, ‘the-funk’ ) . ‘<span>’ . “\n”;

    echo ‘<a href=”‘;
    the_author_meta(‘user_url’);
    echo ‘”>’;
    the_author_meta(‘display_name’);
    echo ”;

    echo ‘</span></h4>’ . “\n”;
    echo ‘<div class=”author-box-content”>’ . “\n”;
    global $user_ID;
    if (get_the_author_meta(‘description’, $user_ID)) {
    echo ‘<p>’;
    the_author_meta(‘description’);
    echo ‘</p>’ . “\n”;
    } else {
    echo ‘<p>’ . __( ‘See all the posts by ‘, ‘the-funk’ ) . get_the_author_meta(‘display_name’) . ‘ ‘ . __( ‘at this link’, ‘the-funk’ ) . ‘.</p>’ . “\n”;
    }
    echo ‘</div>’ . “\n”;
    echo ‘</section>’ . “\n”;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Author Links’ is closed to new replies.