Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
January 6, 2014 at 10:37 am #205766
Hi,
I love the new feature of size in the color section, is there an easy way to add a new size : at least 40% ? Thanks very much!
January 6, 2014 at 11:05 am #205767Hey oliviad!
Yes, open up enfold\config-templatebuilder\avia-shortcodes\section.php and replace
array( "name" => __("Section Minimum Height",'avia_framework' ), "id" => "min_height", "desc" => __("Define a minimum height for the section. Content within the section will be centered vertically within the section",'avia_framework' ), "type" => "select", "std" => "", "subtype" => apply_filters('avf_template_builder_section_height',array( __('No minimum height, use content within section to define Section height','avia_framework' ) =>'', __('At least 100% of Browser Window height','avia_framework' )=>'100', __('At least 75% of Browser Window height','avia_framework' ) =>'75', __('At least 50% of Browser Window height','avia_framework' ) =>'50', __('At least 25% of Browser Window height','avia_framework' ) =>'25', )) ),
with
array( "name" => __("Section Minimum Height",'avia_framework' ), "id" => "min_height", "desc" => __("Define a minimum height for the section. Content within the section will be centered vertically within the section",'avia_framework' ), "type" => "select", "std" => "", "subtype" => array( __('No minimum height, use content within section to define Section height','avia_framework' ) =>'', __('At least 100% of Browser Window height','avia_framework' )=>'100', __('At least 75% of Browser Window height','avia_framework' ) =>'75', __('At least 50% of Browser Window height','avia_framework' ) =>'50', __('At least 40% of Browser Window height','avia_framework' ) =>'40', __('At least 25% of Browser Window height','avia_framework' ) =>'25', ) ),
Then open up enfold\js\shortcodes.js and replace
css += ".av-minimum-height-25 .container {height:"+wh25+"px;}\n";
with
var wh40 = Math.round( wh100 * 0.4 ); css += ".av-minimum-height-40 .container {height:"+wh40+"px;}\n";
Cheers!
PeterJanuary 6, 2014 at 1:52 pm #205807Awesome !
Thanks -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘Color section > at least 40%’ is closed to new replies.