Last post May 01, 2016 07:17 PM by Moises Durovni
May 01, 2016 02:04 PM|Moises Durovni|LINK
I am new to bootstrap and MVC.
So I start a Project to start learning and found the collors of the default Project a little bit dull, so decided to change.
I found a new bootstrap theme at Bootwacth (https://bootswatch.com/) and give a try to Cerulean theme.
I downloaded the theme and saved it at the Content folder. With that I expected to see a blue navbar instead of the black one shown in the default Project, but nothing has changed.
What am I doing wrong or missing?
May 01, 2016 04:04 PM|Nataraj Gandhi Arunachalam|LINK
You can try out some of these trouble shooting steps,
1. Did you include the new theme css files in your layout file? If not please try including them.
2. If you have already included it in your layout file, check the order. Is it included after your existing css file? Try including it after your existing css file. If not, and the same class appears twice in both the files, the last file included may overwrite
the previous style.
3. The new class that brings the blue navbar may be having a different class name for that theme to appear in your nav bar. Open the sample HTML files that got downloaded. Check what classes have been used for the blue nav bar. Then add those same classes
in your HTML file after removing the ones you have used now and test.
4. Use the browser dev tools to find out what class is getting applied, what styles are taking precedence etc to find out why you are not getting the desired styles applied to your nav bar.
May 01, 2016 07:17 PM|Moises Durovni|LINK
You got it: number 3, it has a different class name.
Thank you very much for your help.