Tagged: Flexible font size
August 7, 2018 at 6:37 pm #994518
Currently, the smallest size available in the Flexible font size (adjusts to screen width) pulldown is 3vw.
Is there a way to add smaller font choices; 2.5vw, 2vw etc.?
I looked through support posts and didn’t see this addressed.
GregAugust 8, 2018 at 4:14 pm #995033
I’m not really sure where to find the vw based font size since we used px.
If the size you want to use isn’t defined in the dropdown selection, I would suggest using Quick CSS found in Enfold > General Styling.
Can you give us a link to your site and point us what text/content you want to change the font size and we’ll help provide the css code that should work.
NikkoAugust 8, 2018 at 4:46 pm #995059
The site is behind a firewall and I won’t be able to open access to you.
However, I’ve taken a screenshot of the Enfold Admin showing the vw font sizes. You can see that 3vw is the smallest size available in the pull-down.
Can we adapt the theme so that 2.5vw and 2vw are also choices?
August 8, 2018 at 5:01 pm #995068
- This reply was modified 1 year, 11 months ago by Donkies11. Reason: it didn't look like the image actually loaded - so i placed a link to the screenshot
I see thanks for clearing that out, you can open heading.php found in enfold\config-templatebuilder\avia-shortcodes\heading folder (line 55):
__("Flexible font size (adjusts to screen width)" , 'avia_framework') => AviaHtmlHelper::number_array(3,7,0.5 , array(), "vw", "", "vw"),
and replace it with:
__("Flexible font size (adjusts to screen width)" , 'avia_framework') => AviaHtmlHelper::number_array(1,7,0.5 , array(), "vw", "", "vw"),
this should include 1vw, 1.5vw, 2vw and 2.5vw.
The customization would be lost during the Enfold theme update, so I suggest using a child theme then follow the instructions here: https://kriesi.at/documentation/enfold/intro-to-advanced-layout-builder/#add-elements-to-alb
Hope this helps.
NikkoAugust 9, 2018 at 12:54 am #995188
Took me a little bit to get all the elements needed to work the Child Theme – and I got it!
Thanks for your help – working like a charm!
P.S. this ticket can be closed – thanks again. gwAugust 9, 2018 at 6:52 am #995256
The topic ‘Flexible font size – smaller sizes in pull-down menu?’ is closed to new replies.