Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #1403761

    Hey 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,
    Ismael

    #1403775

    And 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 );
    #1404233

    Thanks a lot!

    The second option worked instantly.

    #1404339

    Hi tebitrongmbh,

    We’re glad that the suggested solution worked :)


    @Guenni007
    thanks for helping out :)

    Best regards,
    Nikko

    #1404351

    Hi,


    @tebitrongmbh


    @Guenni007

    In 5.6 I extended theme options for 6 columns.

    Best regards,
    Günter

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Six columns in footer’ is closed to new replies.