CSS Line_Clamp - No More Text Length Woes

  Рет қаралды 5,790

WPTuts

WPTuts

Күн бұрын

Пікірлер: 69
@keaton718
@keaton718 6 ай бұрын
We're so blessed that people like Paul can somehow make a living by giving us free tips like this.
@techjavaid6177
@techjavaid6177 Жыл бұрын
You are the only person who i have seen using 767px for mobile, and it is perfect for all mobile devices, i use 767 for mobile and 768-1024px for ipad etc. Well done mate
@John.Rearden
@John.Rearden Жыл бұрын
IMHO, your channel is a great resource for what’s happening in the Wordpress ecosystem with pagebuilders and plugins, features and comparisons. Leave the code snippets for others, there are plenty who deal with such nitty gritty. You focus on the big picture. Food for thought, cheers.
@paulhildmann8392
@paulhildmann8392 Жыл бұрын
Thanks for the tip. This will work perfectly for testimonials.
@2gusIstudio
@2gusIstudio Жыл бұрын
Thank you very much. I've been watching you for a very long time. You're just a great fellow. 🎉
@derekshort
@derekshort Жыл бұрын
Great video!
@WPTuts
@WPTuts Жыл бұрын
Glad you enjoyed it
@aleemanesh
@aleemanesh Жыл бұрын
This guy's videos are a life saver. Thanks a lot Paul. Every single one of your tutorials are useful and informative.
@WPTuts
@WPTuts Жыл бұрын
Glad you like them!
@DonDiablo_US
@DonDiablo_US Жыл бұрын
Thank you so much. I needed this so bad. Thank you. 😊
@WPTuts
@WPTuts Жыл бұрын
You are so welcome!
@quintrahaman
@quintrahaman Жыл бұрын
Awesome! Thanks for sharing!
@jaoortega
@jaoortega Жыл бұрын
This is very very very very useful. It addressed a huge problem always on loops... Thanks Paul C.!
@WPTuts
@WPTuts Жыл бұрын
Glad it was helpful!
@webtappers7863
@webtappers7863 Жыл бұрын
Thanks Paul.
@EdHallPhotoFL
@EdHallPhotoFL Жыл бұрын
Thanks for the video, Paul. I was implementing this over the weekend and found for older devices I had to set a height declaratrion. It was suggested to use line-height multiplied by the number of lines to come up with the "magic number" for the height which worked great.
@WPTuts
@WPTuts Жыл бұрын
Great tip if you have to target older unsupported browsers. 😁👍
@AP-ew4qd
@AP-ew4qd Жыл бұрын
Thank you Paul, I was just deliberating this issue a few hours back ... now I have a solution! Great video as usual, I'm also on Bricks.
@nicholasaguirre2558
@nicholasaguirre2558 Жыл бұрын
I love this. Super useful with mainly sites.
@alexanderroodt5052
@alexanderroodt5052 Жыл бұрын
Very neat thank you
@WPTuts
@WPTuts Жыл бұрын
Very welcome
@mksundstrom
@mksundstrom Жыл бұрын
I'd still use Exceprt but I'd apply the clamp on the excerpt. Excerpt is just more practical as many themes and layouts assume it's being used, and I suspect it's best for SEO too.
@WPTuts
@WPTuts Жыл бұрын
So would I or a custom synopsis field. This demo was using the content field to show an easily visible example.
@WIThEMaN2
@WIThEMaN2 Жыл бұрын
Great advanced small quick tip for lots of use cases. Thanks!
@WPTuts
@WPTuts Жыл бұрын
Glad it was helpful!
@carbonrich
@carbonrich Жыл бұрын
As a pedantic designer who got into usability testing far far too late, I'm interested how this would perform with users, my guess is: badly. As much as I love this from a design pov, I think the real solution to this kind of design problem is >>> content strategy and a decent editor who understands design as well as copy...
@WPTuts
@WPTuts Жыл бұрын
In a perfect world I would 100% agree. From a practical point of view after handing sites off to clients, I think it’s a viable option for design integrity. It’s all about compromising. 😁
@franky9234
@franky9234 Жыл бұрын
Thank you! I've been looking for something like this for a long time.
@WPTuts
@WPTuts Жыл бұрын
Glad I could help!
@PswACC
@PswACC Жыл бұрын
Hi Paul. Since you are using the CSS selector box inside of Bricks, You don't need to write the class name. You would use the new root selector. %root% { }
@WPTuts
@WPTuts Жыл бұрын
This is true, but I wanted to make sure anyone could use the code and not just Bricks users. Also, once you save the code, Bricks automatically converts it to %root%. 👍
@PswACC
@PswACC Жыл бұрын
@@WPTuts I was not aware of the conversion.
@WPTuts
@WPTuts Жыл бұрын
@@PswACC I only found out when recording the tutorial as it kept changing it which was a PITA for the tutorial. Lol 🤦‍♂️
@ib4112
@ib4112 Жыл бұрын
This is nice, however i am not sure how much text it will add to the page if we have lot of post on the page and each is clamped to 3-5 lines. isn't better to use short description to keep page size small. I agree with you if we have short description of 20-30 words then this is great way to do it, i hope you understand my point of view.
@WPTuts
@WPTuts Жыл бұрын
I used a more extreme example to demonstrate the technique. I’d use it either with a custom field or the excerpt function in the real world. Text overflow would be minimal then. 👍
@WickyDesign
@WickyDesign Жыл бұрын
Great tip!
@WPTuts
@WPTuts Жыл бұрын
Cheers Mark :)
@martinbarron6545
@martinbarron6545 Жыл бұрын
Hi, great vid!. Can't seem to get it working on mobile, even with a media query though?
@Pedant_Patrol
@Pedant_Patrol Жыл бұрын
Funny. I literally implemented this solution just two weeks ago. Great tip!
@WPTuts
@WPTuts Жыл бұрын
It's a really nifty little function of CSS. :)
@baliflorent6971
@baliflorent6971 Жыл бұрын
Thanks Thanks Thanks.
@LH-gb2lh
@LH-gb2lh Жыл бұрын
I can't understand the advantage: if you want to show 5 lines in a textblock, why not place 5 lines in it? Or is it that if you click on it, the full text can be seen in a pop up?
@tavusion
@tavusion Жыл бұрын
Can't find link to code, please share.
@WPTuts
@WPTuts Жыл бұрын
Odd, I added it to the description and it's gone! I've re-added it now and added it here too: learnbricksbuilder.com/control-text-line-length-with-line-clamp/
@crazyworld7485
@crazyworld7485 Жыл бұрын
Thank for all video. Please review best plugin for SEO 😊
@WPTuts
@WPTuts Жыл бұрын
I’m an SEOPress user, so I don’t think I’d be overly objective in a review. 👍
@JordyKolster
@JordyKolster Жыл бұрын
What About accessibility?
@WPTuts
@WPTuts Жыл бұрын
In what way?
@TobiasKarnetzke
@TobiasKarnetzke Жыл бұрын
Nice solution. However, all the text still remains in the source code, which is something to keep in mind.
@WPTuts
@WPTuts Жыл бұрын
It is. But, personally I would either create a custom field for a synopsis of the content or use the excerpt and limit that using this method. That way, the amount of text would be neglible in comparison to the full article content.
@2gusIstudio
@2gusIstudio Жыл бұрын
We are waiting for the continuation of the elementor
@WPTuts
@WPTuts Жыл бұрын
Continuation of the Elementor what?
@sandeshchauhan7780
@sandeshchauhan7780 Жыл бұрын
Very useful but we can't read the entire text after applying this.
@WPTuts
@WPTuts Жыл бұрын
That’s kinda the point. If the content falls below the line quantity set then it’s all readable. It’s a compromise between design integrity and content. It’s one way of doing things but not the only way. 😉
@megrikyan
@megrikyan Жыл бұрын
Will it go with Elementor too?
@WPTuts
@WPTuts Жыл бұрын
Absolutely. Anywhere you can apply a CSS class you can target it. :)
@SamWereb
@SamWereb Жыл бұрын
0:32
@thebuildreview
@thebuildreview Жыл бұрын
You forgot to add the code to the comments ;-)
@WPTuts
@WPTuts Жыл бұрын
It's under the resources and link section in the video description. As there's a lot of code there, it's on my Bricks website and includes the CSS and HTML code.
Why These 10 Webpage Components Are Ruining Your Site
12:25
3 modern CSS techniques for responsive design
14:32
Kevin Powell
Рет қаралды 217 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
How to Perfectly Set Up Typography & Fonts in Elementor
19:07
Rino de Boer
Рет қаралды 124 М.
Responsive Typography with CSS Clamp
8:37
Tom Is Loading
Рет қаралды 63 М.
Bricks: Build-Your-Own Fluid Typography Framework
41:27
Dave Foy
Рет қаралды 16 М.
Useful & Responsive Layouts, no Media Queries required
11:03
Kevin Powell
Рет қаралды 187 М.
9 Web Design Trends 2025 to Spruce Up Your Site
16:33
Showit
Рет қаралды 105 М.
Create Stunning Glassmorphism and Gradient Mesh Effects
8:19
The Easy Way to Design Top Tier Websites
11:54
Sajid
Рет қаралды 723 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН