Zola Posted November 22, 2016 Share Posted November 22, 2016 Hi folks, I am helping a friend with a site, but we are having an issue keeping a selected menu item highlighted on this one page site. https://bootstrapmade.com/demo/Knight/ CSS hacking the Active class doesn't seem to be the right thing as it only does what we want when its clicked, but not after. Any ideas as to what I need to do? Any help is greatly appreciated. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/302589-keeping-a-menu-item-selected-one-page-site/ Share on other sites More sharing options...
Solution Zola Posted November 22, 2016 Author Solution Share Posted November 22, 2016 Figured it out! needed to add color: #ff0000 !important; co to bootstrap css file Quote Link to comment https://forums.phpfreaks.com/topic/302589-keeping-a-menu-item-selected-one-page-site/#findComment-1539558 Share on other sites More sharing options...
benanamen Posted November 22, 2016 Share Posted November 22, 2016 You don't ever edit the bootstrap CSS file. Include your own custom CSS file that overrides the bootstrap class. The reason being, when you update the bootstrap version, you will lose all your changes or have do the mods all over again. Quote Link to comment https://forums.phpfreaks.com/topic/302589-keeping-a-menu-item-selected-one-page-site/#findComment-1539568 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.