Tagged: color section, size
Hi Enfold Team,
I would like to add a new size (at least 60%) in the color section of the enfold template. After reading the follow thread: https://kriesi.at/support/topic/color-section-at-least-40/ i am actually not sure which enfold\js\shortcodes.js code i have to add or replace it.
Please can you help me. Thank you very much in advanced!
Best wishes
Tom
Hi THobbes!
The code has changed a bit
1. When you open the file “enfold\config-templatebuilder\avia-shortcodes\section.php” in a text editor press Ctrl + F and search for keyword term “Section Minimum Height”
2. Look for
__(‘At least 75% of Browser Window height’,’avia_framework’ ) =>’75’,
Below that line add
__(‘At least 60% of Browser Window height’,’avia_framework’ ) =>’60’,
3. The rest of the changes in enfold/js/shortcodes.js
look for
wh75 = Math.round( wh100 * 0.75 ),
below that line add
wh60 = Math.round( wh100 * 0.6 ),
look for
css += “.av-minimum-height-75 .container {height:”+wh75+”px;}\n”;
below that line add
css += “.av-minimum-height-60 .container {height:”+wh60+”px;}\n”;
Cheers!
Vinay Kashyap
Hello Vinnie,
I thank you too! I was exactly looking for this.
Milan