Project index - Truncate
-
Hi,
When using "project index" Lay Theme automatically truncate sentences if they are too long.
Here is an example:
https://schonningjart.dk/forside-test/
Lay Theme cuts sentences when below 1660 px vw. Is there a way to change this? So instead of truncated sentences it's just two lines or how many needed?Best,
Hans -
sure, use this css:
.lay-projectindex-row > div{ white-space: normal; text-overflow: initial; overflow: auto; }
-
Hi Armin,
Yes, it works! Thank you so much!
Best,
Hans -
Hi,
Just updated to latest Lay theme now the shared css is not working anymore...?
Best,
Hans -
try this
.lay-projectindex.lay-projectindex-style-table .lay-projectindex-col-title{ white-space: normal; text-overflow: initial; overflow: auto; }
-
Hi @arminunruh
Thank you for your answer
That css snippet gives the rows with overflow a scrollbar. You have any other suggestions :)?Best,
Hans -
Hi again
Made it work - it was just a matter of adding !important to white-space: normal;
Thank you, and happy new year!
-
This post is deleted!
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it