Skip to content

Commit e14c435

Browse files
mlaetitiaclaude
andcommitted
Remove the AI secondary navigation, its styles and its menu location
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011rCHPCdbV5C5dDJjEmMDuy
1 parent 9805853 commit e14c435

7 files changed

Lines changed: 2 additions & 157 deletions

File tree

‎themes/osi/assets/css/editor-style.css‎

Lines changed: 0 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎themes/osi/assets/css/editor-style.css.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎themes/osi/assets/scss/_8_overrides.templates.scss‎

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -494,55 +494,6 @@ footer.ai-footer {
494494
.ai-def-header .wp-block-coblocks-hero__inner {
495495
height: 850px;
496496
}
497-
// Secondary Nav
498-
.ai-secondary-navbar-wrapper {
499-
background-color: #fff;
500-
border-bottom: 1px solid #ddd;
501-
padding: 10px 0;
502-
position: sticky;
503-
top: 90px; // adjust as needed
504-
z-index: 999;
505-
}
506-
.ai-secondary-nav-menu {
507-
display: flex;
508-
justify-content: center;
509-
gap: 40px;
510-
list-style: none;
511-
margin: 0;
512-
padding: 0;
513-
padding-top: 10px;
514-
font-size: 10px;
515-
li {
516-
display: inline-block;
517-
}
518-
}
519-
// Hide mobile label by default (desktop)
520-
.ai-mobile-label {
521-
display: none;
522-
}
523-
// Mobile-specific styles (not using "force override" block)
524-
@media (max-width: 768px) {
525-
.ai-secondary-mobile-wrapper {
526-
margin-top: 10px;
527-
padding-top: 0;
528-
}
529-
.ai-mobile-label {
530-
display: block;
531-
color: #bbb;
532-
font-size: 13px;
533-
text-transform: uppercase;
534-
padding: 8px 20px 4px;
535-
margin: 0;
536-
letter-spacing: 0.5px;
537-
text-align: right;
538-
}
539-
.ai-secondary-mobile-menu {
540-
margin-top: 0;
541-
li {
542-
padding: 10px 20px;
543-
}
544-
}
545-
}
546497
.jetpack-social-navigation {
547498
height: 40px;
548499
margin: 0;

‎themes/osi/functions.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,6 @@ function osi_handle_supporter_form_flamingo_spam_status_change( string $new_stat
588588
*/
589589
function osi_register_ai_menu() {
590590
register_nav_menu( 'ai', __( 'AI Menu', 'osi' ) );
591-
register_nav_menu( 'ai_secondary_nav', __( 'AI Secondary Navigation', 'osi' ) );
592591
}
593592
add_action( 'after_setup_theme', 'osi_register_ai_menu' );
594593

‎themes/osi/header.php‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,6 @@
4747
)
4848
);
4949
endif;
50-
//Adding for AI template - secondary navigation
51-
if ( is_page_template( 'templates/ai-wide.php' ) ) :
52-
echo '<p class="ai-mobile-label">' . esc_html__( 'Open Source AI', 'osi' ) . '</p>';
53-
wp_nav_menu(
54-
array(
55-
'theme_location' => 'ai_secondary_nav',
56-
'menu' => 'AI secondary nav',
57-
'container' => false,
58-
'container_class' => 'ai-secondary-nav',
59-
'menu_class' => 'ai-secondary-nav-menu',
60-
)
61-
);
62-
endif;
6350
?>
6451
<?php
6552
$osi_cta = osi_menu_cta();

‎themes/osi/style.css‎

Lines changed: 0 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎themes/osi/style.css.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)