-
-
Hi, I have tried several of your other responses and can’t get this to work.
Currently I have 9 single staff thumbnails and text excerpt set up on a page, but you can’t click through. I have tried several of your answers here and they either add the full text to the initial page, or remove all single staff items altogether. Are you able to help?
The info on this page https://support.codeless.co/?topic=staff-picture-size-and-link makes the content of the page disappear altogether.
Thanks -
Hi Mihaila,
I have the specular theme. I’m wanting to add a staff page. I have three staff single profiles that are set up on the page. I want to have these clickable so they link to a full page per staff member with their photo and bio. I would like it to link to a page similar to this https://codeless.co/specular/default/?staff=brad-doe. Can you please advise?
-
Hello,
Please follow the below instructions:
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!
-
Fantastic, this is great, (I’ve just used the first option), but it takes you to a page which looks like a post page, doesn’t have the profile picture and includes items such as: posted by, post date, comments, and blog sidebar. How can I link to the specific profile page?
Thanks heaps
-
Hello,
If you followed the instructions above, you will be able to click on the staff name and picture and be directed to their profile as staff entry. The page you see after clicking on their names is their staff entry you have created for them. If you want to be directed to a specific page by clicking on them, refer to this topic.
It is a tested solution. You will be able to add a profile link to the chain of social links in staff element and be redirected to the page you choose to be the profile page.
Let us know.Best regards!
-
Hi Kris,
Thanks I tried that but it looks like a double up of what I have already done. I have the profile linking to the full profile page, but this page is basically a post page. I would like to do the following:
Remove the blog post sidebars from the staff profile page, but keep the blog post sidebars on the blog post pages. How do I remove them from just the staff profile pages please?
Thanks heaps
-
Hello,
If you followed the instructions of the topic i have sent you, you will get this screenshot 1 and choose the link you want to be directed, to display the profile screenshot 2. It doesn’t direct you to the blog post page (only if you choose to). Anyway if you want to not display the sidebars at you single post page, go to General Options > Blog Config > Single Blog Layout and choose the first layour (without sidebar) see screenshot.
If you need us to provide the instructions again step by step, let us know.Best regards!
-
This is great, thanks so much – all sorted! Just wanted to know how to make the linkedin link from the staff profile open in a new window/tab?
Much appreciated!
-
Hello,
Please go to file vc_templates/staff.php and find this line:
$output .= '<a href="'.esc_url($cl_redata['linkedin_link']).'" class="a1" data-animate="fadeInUp" title="linkedin"><i class="moon-linkedin"></i></a>';
edit to this:
$output .= '<a href="'.esc_url($cl_redata['linkedin_link']).'" target="_blank" class="a1" data-animate="fadeInUp" title="linkedin"><i class="moon-linkedin"></i></a>';
Best regards!
-
You must be logged in to reply to this topic.