Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Mega footer fix
Browse files Browse the repository at this point in the history
Fix footer to hold max of 6 widgets
  • Loading branch information
szk11001 committed Jul 30, 2014
1 parent 220f9d7 commit b1f028c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/reg-sidebars.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function mf_remove_extra( $sidebars_widgets ){
$widgets = $sidebars_widgets['mega-footer'];
if( is_array($sidebars_widgets['mega-footer']) ){
foreach ($sidebars_widgets['mega-footer'] as $i => $widget) {
if( $i > 6 ){
if( $i > 5 ){
unset($sidebars_widgets['mega-footer'][$i]);
}
}
Expand Down

0 comments on commit b1f028c

Please sign in to comment.