Viewing 5 reply threads
You must be logged in to reply to this topic.
Hi – I’m trying to put a team page together, and I have a few questions.
First, I’d like for the Staff Position to be on two lines. I tried using < br/ >, but the code showed up. Is there a way to insert HTML code in the Staff Position? Or should I be using a shortcode to add the break?
Second, I’d like for both the image and the name of the person to be clickable and linked to a full bio page. I found something similar in the forums, but it was for the Specular theme, not Tower. Could you please help me with that?
Thank you!
Hello,
Please go to file vc_templates/staff.php and find this line:
<span class="position">'.esc_attr($position).'</span>
Replace with this:
<span class="position">'.$position.'</span>
Best regards!
is there a fix for this request above?….
Second, I’d like for both the image and the name of the person to be clickable and linked to a full bio page. I found something similar in the forums, but it was for the Specular theme, not Tower. Could you please help me with that?
Thank you!
I am going crazy trying to find this solution!
Hello,
@chuckylose,
1-To make the staff name a link to it’s profile, please go to vc_templates\staff.php file and find this line:
$output .= '<h5>'.esc_html(get_the_title()).'</h5>';
Replace with this:
$output .= '<a href="'.esc_url(get_permalink()).'"><h5>'.esc_html(get_the_title()).'</a></h5>';
2-To make the picture a link as well, in the same file find this line:
$output .= '<img src="'.esc_url($featured).'" alt="">';
Replace with this:
$output .= '<a href="'.esc_url(get_permalink()).'"><img src="'.esc_url($featured).'" alt=""></a>';
Let us know.
Best regards!
You must be logged in to reply to this topic.