Click to copy

Paste to child theme's functions.php

function md_child_theme_footer_columns() {
	return array( 1, 2, 3, 4 );
add_filter( 'md_filter_footer_columns', 'md_child_theme_footer_columns' );

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 snippet on this page will expand the footer columns area to four (4) columns from the default three (3).


Get the latest MD sent straight to your inbox

There's always something new in the works in the MD Labs! Join the email list to get the newest content and releases sent straight to your inbox.*

Join the MD Newsletter

* I only email you when there's something new, or to share an exciting MD sneak peak.