First I would like to say Great job developers and contributors.
I'm trying to change the navbar background color in the Alternative theme and like a young frog I've hit a few bumps.
I found the correct css file but have not found the proper place to set a new value.
Any and all help would be appreciated.
Colbyt
change navbar bg color Alternative theme
-
arfa
- Master Bludit
- Posts: 199
- Joined: Tue Jul 04, 2017 4:31 am
- Location: New Zealand
- Has thanked: 17 times
- Been thanked: 35 times
Hi Colbyt,
The alternative theme is classically built so tracking items is fairly easy.
If you have found the css file then go to
and you will see I have set the background as red – it does need the !important
Depending on what browser you are using... right-click the element, the navbar, and click 'inspect' and the dev-tools elements should show at the bottom. You can see all the classes applied to the navbar there ...
navbar navbar-expand-md navbar-dark bg-dark fixed-top text-uppercase
You can experiment by changing the css for each (make a backup of the css first !) to see how they interact.
The alternative theme is classically built so tracking items is fairly easy.
If you have found the css file then go to
Code: Select all
.navbar {
transition: background-color var(--transition-normal);
backdrop-filter: saturate(180%) blur(20px);
-webkit-backdrop-filter: saturate(180%) blur(20px);
background-color: rgba(29, 29, 31, 0.8) !important;
background-color: red !important;
}Depending on what browser you are using... right-click the element, the navbar, and click 'inspect' and the dev-tools elements should show at the bottom. You can see all the classes applied to the navbar there ...
navbar navbar-expand-md navbar-dark bg-dark fixed-top text-uppercase
You can experiment by changing the css for each (make a backup of the css first !) to see how they interact.
- Edi
- Site Admin
- Posts: 3146
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 86 times
- Been thanked: 126 times
- Contact:
You can also use the plugin HTML Code to modify CSS definitions.
For a blue navigation bar for example you can insert the following in the field "Head":
For a blue navigation bar for example you can insert the following in the field "Head":
Code: Select all
<style>
.navbar {
background-color: #ffff00 !important;
}
</style>
-
GrahamWSheff
- Jr. Bludit
- Posts: 5
- Joined: Wed Oct 21, 2026 1:26 am
edi that works, but im not sure its the best shout for a one off colour change... i reckon id stick with the css file, otherwise you end up with the colour set in two places and cant remember which one is winning. also #ffff00 is yellow not blue mate, unless my eyes are goinEdi wrote:You can also use the plugin HTML Code to modify CSS definitions.

