Formatting employee content on homepage

Hi, I’ve used the referenced PHP modification from this thread https://forums.athemes.com/t/employee-content-no-line-break/11967 to display content from the employee page with the correct formatting, but it shows the entirety of the employee text from the employee pages. What I really need it to do is just show the employee info (job title, cell #, office #, and email) not the all the text. It would also need to be formatted like it is on the employee pages. Is there a way to do this using the PHP referenced in the other thread or any other way to accomplish this?

URL: eblawtexas.com

Hi, is anyone monitoring or working on this?

Thanks,
Matt

Hello Matt,

First sorry for the delay, seems that we missed this one!

Unfortunately that’s not possible in a HTML formated way, since your employee content has more than just “job title, cell #, office #, and email”. The only way to show the content formated is using the <?php the_content(); ?> function, but this will show all employee content.

We hope this clarifies!

Let us know if you have more questions.

Kind Regards,

Rodrigo.

aThemes Support

Is there a way to hide it then but still keep the title visible?

Hello Matt,

Yes that’s possible with the custom CSS code below at Appearance > Customize > Additional CSS:

.employee .employee-content {
    max-height: 58px;
    overflow: hidden;
}

We hope this helps!

Please try that and let us know if you need further help.

Kind Regards,

Rodrigo.

aThemes Support

That worked, thanks!

Hello Matt,

You are welcome!

Let us know if you need further assistance.

Kind Regards,

Rodrigo.

aThemes Support