diff --git a/blockbase/block-template-parts/header.html b/blockbase/block-template-parts/header.html index 89a4df199c..dc0f2b9fb3 100644 --- a/blockbase/block-template-parts/header.html +++ b/blockbase/block-template-parts/header.html @@ -2,5 +2,6 @@ - \ No newline at end of file + diff --git a/blockbase/functions.php b/blockbase/functions.php index c44383984c..85dfac1ce8 100644 --- a/blockbase/functions.php +++ b/blockbase/functions.php @@ -30,10 +30,11 @@ function blockbase_support() { ) ); - // This theme has one menu location. + // Register two nav menus register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'blockbase' ), + 'social' => __( 'Social Navigation', 'blockbase' ) ) ); @@ -156,8 +157,8 @@ function blockbase_social_menu_render( $block_content, $block ) { $nav_menu_locations = get_nav_menu_locations(); $social_menu_id = $nav_menu_locations['social']; $class_name = 'is-style-logos-only'; - if( !empty( $block['attrs']['itemsJustification'] ) && $block['attrs']['itemsJustification'] === 'right' ) { - $class_name .= ' items-justified-right'; + if( !empty( $block['attrs']['itemsJustification'] ) ) { + $class_name .= ' items-justified-' . $block['attrs']['itemsJustification']; } $block_content = '