I have some products that the short description is too long that as a H1 header it starts to go on to 2 lines.
I can't really shorten it, as it is the text that is needed, so I really need to compress it in size to stop it filling out into a 2nd line.
This is where it gets more complicated though.
I don't want a blanket compress of the H1 header as most products wouldn't require it.
So is it possible to have code or blocks to do the following
1) Check size of H1 header, and if greater than set level, compress H1 to fit?
Any ideas would be a great help.
I can't really shorten it, as it is the text that is needed, so I really need to compress it in size to stop it filling out into a 2nd line.
This is where it gets more complicated though.
I don't want a blanket compress of the H1 header as most products wouldn't require it.
So is it possible to have code or blocks to do the following
1) Check size of H1 header, and if greater than set level, compress H1 to fit?
Any ideas would be a great help.
Comment