Trim/Crop Name Of Article And Introduction To Article - Question | JoomShaper

Trim/Crop Name Of Article And Introduction To Article

B

BenL

Helix Framework 4 years ago

Hello support, I would ask for help with trim/crop lenght for Article Title and introduction to Article. Now when i have diffrent lenght of Article Title and Intruduction text to Article page with Articles looks not like I want.

Im using Educon template with SP LMS.

Please fine more details in hidden content.

Regards.

0
5 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 4 years ago #15836

Hi there!

The following custom CSS may serve your perpose, you need to put it in your custom.css file:

article.item .intro-image img {
    height: 300px !important;
}
.blog-grid-view article.item .content-wrap .introtext, article.item .content-wrap .entry-header{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-height: 1.41;
    max-height: 100px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

Let me know the output.

Best Regards

0
B
BenL
Accepted Answer
4 years ago #15960

Hello there, Many thanks for custom css for blog-grid - works perfeclty.

Regarding code for intro image is, if the picture dont have proper size this disort image and dont looks good.

Regards.

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 4 years ago #15963

Thanks for letting me know and always welcome:)

Image code was looking good here at my end, if you don't want to fixed the height, you can leave it.

Regards

0
DP
denis pirra
Accepted Answer
4 years ago #21664

Hi Rashida, I ask you if you can help me, because I also need a trim/crop of the title.

I am working with Shaper Helix Ultimate + SP page builder PRO.

In my home page I enabled the Articles add-on, with the grid view.

But some titles that are short ... and other titles are too much long. So, please, can you help to crop them?

thanks in advance

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 4 years ago #21720

Hi denis,

Would you please open a new post along with your site URL and necessary info?

That would be better.

Best Regards

0