Text and Picture on display from the posts on the home page

Hello,

On the home page of Illdy I display my latest post in the latest news section. However, it displays 9 lines of it, which is a bit too many especially while opening on a phone. Can you tell me how I can reduce the text displayed to 4 lines of text only.

Also, the picture on display is the one chosen as “Feature image” for the post. It seems to crop it from the middle. Is there any way to have the picture displayed as a whole (width constrained) or from the top of it to not have it crop this way?

Thanks a lot for your answers.

G

Hello @elgaetano,

Unfortunately, both of your issues requires too much custom work that clearly falls out of the support plan.

Have a great day!

Hello,

Thanks for your reply. That’s ok, just give me the line in the code and I can do the custom work. I believe it is just a matter of reducing the number of lines and adjusting the picture crop from the top.

Thank you in advance for your reply.

G

Hello @elgaetano,

It’s not just a line of code.

You need to change the cropping function in functions.php and add/modify the default excerpt code, in the same functions.php

It’s not as easy as a line code, otherwise I would’ve pointed you to it.

Regards