Truncate X amount of lines in RSS Feed

Is it possible to truncate the RSS title after X amount of lines? Some of our titles are long and others shorter, so it’d be great if I could cut after 2 lines and then append […] at the end so everything is even.

So the part that is bolded In the example image.

1 Like

Hi @Matthew7

Sure, this code will do the trick :slightly_smiling_face:

[class^='Text__Title-sc'] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

This worked perfectly, thank you!!

1 Like

You are always welcome :raised_hands:

Hi @Max - one more thing for these cards

How do I get rid of the text at the bottom of the thumbnail (Good news …)

Hi @Matthew7

This code should work:

.global-styles, [class="Ellipsis__Wrapper-sc-1b8wrxx-0 fsSdUl User__Name-sc-1b0vs6-2 hvpQIU"] {
  display: none;
}

Please check it and let me know if it helped :slightly_smiling_face: