Designing your website to look and work perfectly on all screen sizes is more important now than ever. Sometimes itโs not so easy to do this. If sometimes you would like to hide some text or labels on any screen, youโll be able to do this by setting font size to zero.
This document will help you do this with the Astra Theme.
Why Is This Important?
This improvement came with the Astra Theme 3.6.9 update. In earlier versions of the Astra Theme setting the font size to zero was not possible.
This will ultimately help you with responsive design.
How To Change This?
For all new websites, these changes will be applied automatically.
For the existing websites, this improvement needs to be activated by adding a filter. This was done to allow you to check how these changes apply to your website and make any changes if needed.
To enable this improvement, you need to add the following custom code (filter) to the functions.php file of your Child Theme:
add_filter( 'astra_zero_font_size_case', '__return_true' );
If you donโt have your Child Theme installed, please check this article on how to do it.
If you are not sure how to add this code, please check this article.