-
-
Hi,
I would like to make staff image look like square (1:1) or rectangular (vertical)
What is the most easy way to change picture size (ratio)?Also is there a way to link staff picture to full staff page with full bio?
-
Hello,
You can change the staff images thumbnails size at the file functions.php.
Find these lines:
add_image_size( 'staff', 400, 270, true ); add_image_size( 'staff_full', 500, 340, true );
and change the size. After that you should recreate the images thumbnails or reupload the images.
You want to link the staff to their full post?
It will have this look: https://codeless.co/specular/default/?staff=brad-doeLet me know and I will give you instructions to do so.
Best regards
-
You said that there is a way to change look of the staff full post, and link it?
Please can you provide me with the instructions.
How can I use Visual Composer to manage the look of the staff full post?
-
-
Hi,
Thank you for the help.
I changed the staff image size.
Yes, I would like to link the staff to their full post.
Also is there a way not to show partial bio under the staff picture?
I would like only to see their full bio on their full post.
-
-
Hello,
Sorry for the late response.
Please edit eh file specular\vc_templates\staff.php (for single staff element).
Find the lines$output .= '<div class="content">'; $output .= '<h5> '.esc_html(get_the_title()).'</h5>'; $output .= '<span class="position">'.esc_attr($position).'</span>'; $output .= '<p>'.codeless_text_limit(get_the_excerpt(), 250).'</p>'; $output .= '</div>';
and replace with
$output .= '<div class="content">'; $output .= '<h5><a href="'.get_permalink().'"> '.esc_html(get_the_title()).'</a></h5>'; $output .= '<span class="position">'.esc_attr($position).'</span>'; $output .= '<p>'.get_the_content().'</p>'; $output .= '</div>';
Changing to
$output .= '<p>'.get_the_content().'</p>';
will display all the content of the staff member.This
$output .= '<h5><a href="'.get_permalink().'"> '.esc_html(get_the_title()).'</a></h5>';
will link the staff member.It’s not possible to use Visual Composer for staff page.
Best regards!
-
Is is possible to save the specular\vc_templates\staff.php changes to a child theme?
-
-
-
-
-
-
-
Thank you for your reply.
The link to full post is made.
However there are few issues.
Please take a look an example
https://www.tehpro.net/usluge/psiholoska-podrska/
Main thing is to put staff in pages with links to their full posts (which I made with your help previously).
Problem now is that under their picture it now shows full text, but It should not show any.
Only when you open their full post it should show all content (their full bio)
Also I would like to change the way the full post looks like. Is it possible?
Another thing is that all staff links are in https://www.tehpro.net/staff_trusted/
which for me doesn’t make much sense, and would be great if I could change it.
-
Mainly …idea is for the full staff post to look like this or similar.
https://www.tehpro.net/zaposleni/
Also, one idea for easy linking would be to have option like for FB, Twitter, Linkedin with simple icon which links to full staff post.
-
-
-
-
-
Thank you.
This looks OK.
Is there a way to use some people icon for the url?
What happens when I need to update theme?
-
Hello,
I changed the link icon to user, by editing this line:
<i class="moon-link">
to this:<i class="moon-user">
in file ‘staff.php’. You can create a child theme and set the changes files there to prevent from changing in future theme updates.Best regards!
-
On the full staff bio page, I am looking to change the size of the image from full width to a left aligned image with text on the right side. How would I go about doing this?
-
Hello,
@JoshGoldenberg
I have replied you here: https://support.codeless.co/?topic=changing-staff-picture-size-on-individual-staff-pages/#post-1990Best regards!
-
Hi, I have tried the above to have the single staff profile link through to their full profile with text and photo. 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?
-
Hello,
@hairyLemon,
This topic, as you can see is very old. The theme has been updated multiple times since then. The code may have changed or you may have edited it wrong.
However, we have already replied you in this other topic of yours.
Please keep up in your own topic.Best regards!
-
You must be logged in to reply to this topic.