Link Single Staff to it’s Profile

Link staff Name:
To make the staff name a link to it’s profile, please go to file <em>vc_templates\staff.php</em> file and find this line:
<code>$output .= ‘<h5>’.esc_html(get_the_title()).'</h5>’;</code>

Replace with this:
<code>$output .= ‘<a href=”‘.esc_url(get_permalink()).'”><h5>’.esc_html(get_the_title()).'</a></h5>’;</code>

Link staff Image:
To make the picture a link as well, in the same file find this line:
<code>$output .= ‘<img src=”‘.esc_url($featured).'” alt=””>’;</code>

Replace with this:
<code>$output .= ‘<a href=”‘.esc_url(get_permalink()).'”><img src=”‘.esc_url($featured).'” alt=””></a>’;</code>

Save changes.

Comments

comments

Was this article helpful?

Related Articles

Leave A Comment?