Skip to content

Change to Dark Nav Bar #765

Answered by crftwrk
cahoskins asked this question in Q&A
May 7, 2024 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

Hi Cindy,

there are several ways to do this. Here are 2 ways:

1. Bootstrap color mode

Use Bootstrap color mode by adding data-bs-theme="dark" attribute to the <header> tag.

  1. Copy header.php to your child and add attribute to header <header data-bs-theme="dark" .... Now navbar is dark and links white.
  2. Then change dark color to secondary in _bootscore-variables.scss: $body-tertiary-bg-dark: #6c757d;
  3. Use your filter to change button classes

2. Combination with filters and SCSS

  1. Use your filters to change bg and button classes
  2. Define nav, offcanvas-title and offcanvas bg in _bootscore-custom.scss:
#masthead .navbar {
  --#{$prefix}navbar-color: #{$navbar-dark-color};
  --#{$prefix}navbar-ho…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by cahoskins
Comment options

You must be logged in to vote
1 reply
@crftwrk
Comment options

Comment options

You must be logged in to vote
1 reply
@crftwrk
Comment options

Comment options

You must be logged in to vote
1 reply
@crftwrk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants