Skip to content

Commit

Permalink
Remove footer menu location
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Apr 26, 2021
1 parent 09aaf47 commit fd635dd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions quadrat/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function quadrat_support() {
register_nav_menus(
array(
'primary' => __( 'Primary Navigation', 'quadrat' ),
'footer' => __( 'Footer Navigation', 'quadrat' ),
'social' => __( 'Social Links Navigation', 'quadrat' ),
)
);
Expand Down Expand Up @@ -49,14 +48,14 @@ function quadrat_scripts() {
*/
function quadrat_override_block_templates( $template ) {

switch ($template) {
case is_home() || is_front_page() :
switch ( $template ) {
case is_home() || is_front_page():
return locate_template( array( 'index.php' ) );
case is_404() :
case is_404():
return locate_template( array( '404.php' ) );
case is_search() :
case is_search():
return locate_template( array( 'search.php' ) );
case is_singular() :
case is_singular():
return locate_template( array( 'singular.php' ) );
default:
return $template;
Expand Down

0 comments on commit fd635dd

Please sign in to comment.