Skip to content

Commit

Permalink
fix footer menus not adding (#110)
Browse files Browse the repository at this point in the history
* fix footer menus not adding

* add default footer social location if it's not set
  • Loading branch information
jamesros161 authored Mar 11, 2024
1 parent e52147a commit 4a2b7ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ export default {
}
} );

return menuLocations.map( location => `bgtfw_menu_${ location }` );
return menuLocations.map( location => `boldgrid_menu_${ location }` );
},

/**
Expand Down
5 changes: 5 additions & 0 deletions src/includes/class-boldgrid-framework-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,11 @@ public function register_navs() {
}
}

// Add the default footer social location if it's not already set.
if ( ! isset( $menus['footer-social'] ) ) {
$menus['footer-social'] = __( 'Footer Social Icons', 'crio' );
}

// This theme uses wp_nav_menu() in one location.
if ( ! empty( $menus ) ) {
register_nav_menus( $menus );
Expand Down

0 comments on commit 4a2b7ee

Please sign in to comment.