Add New Footer Columns

WordPress Footer WidgetsBy default, MD uses a smart 3 column footer widget system. You can choose to use only 1 or 2 of those columns and the layout will adjust automatically to fit the size of the footer area.

With the new md_filter_footer_columns filter, you can now expand that system to as many footer columns as you need. Simply append new columns to the filter and it will:

  1. Creates a new “Footer {x}” widget area in the Appearance > Widgets
  2. Adds space for the new footer column(s) in your existing footer

The example below will expand the footer columns area to four columns from the default three. Simply place this into your child theme’s functions.php file and head over to your Widgets panel to see the new changes:

function md_child_theme_footer_columns() {
	return array( 1, 2, 3, 4 );
}

add_filter( 'md_filter_footer_columns', 'md_child_theme_footer_columns' );

Leave a Comment