Skip to content

Commit 510ded5

Browse files
authored
remove the green line in mobile view in the header (#599)
1 parent c0d2873 commit 510ded5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

template-parts/header-standard.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,17 @@ function sunflower_output_highlight_button_if_exists() {
116116
if ( in_array( 'button-highlight', $menu_item->classes, true ) ) {
117117
$classes_string = implode( ' ', $menu_item->classes );
118118
echo '
119-
<a href="' . esc_url( $menu_item->url ) . '"><i class="' . esc_attr( $classes_string ) . '"></i> ' . esc_html( $menu_item->title ) . '</a>';
119+
<div class="button-highlight-stuck"><a href="' . esc_url( $menu_item->url ) . '"><i class="' . esc_attr( $classes_string ) . '"></i> ' . esc_html( $menu_item->title ) . '</a></div>';
120120
return;
121121
}
122122
}
123123
}
124124
}
125125
?>
126126

127-
<div class="button-highlight-stuck">
128-
<?php sunflower_output_highlight_button_if_exists(); ?>
129-
</div>
127+
<?php sunflower_output_highlight_button_if_exists(); ?>
128+
129+
130130
<button class="navbar-toggler collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#mainmenu-container" aria-controls="mainmenu" aria-expanded="false" aria-label="Toggle navigation">
131131
<i class="fas fa-times close"></i>
132132
<i class="fas fa-bars open"></i>

0 commit comments

Comments
 (0)