I am trying to get more consistent mesh in my store loop.
The product header covers more than 1 or 2 lines depending on the length of the line, so if the line length is less than the amount that makes it intersect with the next line, I want to add a gap "
" so that it does not affect the overall page interval of the store /
This is the code I tried at the moment:
<?php
echo "test";
$title = get_the_title();
if ( strlen($title) < 29 )
{
echo '<br>';
}
?>
I placed it in the woocommerce content-product.php template , but it does not work .
Is my code correct?
Any help would be greatly appreciated.
thank