Tagged: columns, footer, Footer widgets, six footer
-
AuthorPosts
-
April 5, 2023 at 11:01 am #1403587
Hi,
I’ve found two other threads but no solution.
I need six columns in the footer area and I’m working with a child theme.
Thanks in advance.
– Markus
April 7, 2023 at 6:12 am #1403761Hey tebitron gmbh,
Thank you for the inquiry.
This is possible but you have to modify the /enfold/includes/admin/option_tabs/avia_footer.php directly, around line 132, look for the subtype key and add another column in the array based on the pattern. You should be able to select the sixth column in the theme options after the modification.
$avia_elements[] = array( 'slug' => 'footer', 'name' => __( 'Footer Columns', 'avia_framework' ), 'desc' => __( 'How many columns should be displayed in your footer', 'avia_framework' ), 'id' => 'footer_columns', 'type' => 'select', 'std' => '4', 'required' => array( 'display_widgets_socket', '{contains_array}all;nosocket' ), 'globalcss' => true, 'subtype' => array( __( '1', 'avia_framework' ) => '1', __( '2', 'avia_framework' ) => '2', __( '3', 'avia_framework' ) => '3', __( '4', 'avia_framework' ) => '4', __( '5', 'avia_framework' ) => '5' ) );
Best regards,
IsmaelApril 7, 2023 at 8:14 am #1403775And since case 6 is already prepared in footer.php, this could actually be included in core.
btw. there is a child-theme solution to change it – insert this to your child-theme functions.php:
function my_avf_option_page_data_change_elements( array $avia_elements = array() ){ $slug = "footer"; $id = 'footer_columns'; $index = -1; /** Find index of element to change*/ foreach( $avia_elements as $key => $element ){ if( isset( $element['id'] ) && ( $element['id'] == $id ) && isset( $element['slug'] ) && ( $element['slug'] == $slug ) ){ $index = $key; break; } } /** * If key not found, return unmodified array*/ if( $index < 0 ){ return $avia_elements;} /*** Make your customizations*/ $avia_elements[ $index ]['subtype'] = array ( __('1', 'avia_framework') =>'1', __('2', 'avia_framework') =>'2', __('3', 'avia_framework') =>'3', __('4', 'avia_framework') =>'4', __('5', 'avia_framework') =>'5', __('6', 'avia_framework') =>'6' ); return $avia_elements; } add_filter( 'avf_option_page_data_init', 'my_avf_option_page_data_change_elements', 10, 1 );
April 12, 2023 at 5:29 pm #1404233Thanks a lot!
The second option worked instantly.
April 13, 2023 at 12:09 pm #1404339Hi tebitrongmbh,
We’re glad that the suggested solution worked :)
@Guenni007 thanks for helping out :)Best regards,
NikkoApril 13, 2023 at 12:48 pm #1404351 -
AuthorPosts
- The topic ‘Six columns in footer’ is closed to new replies.