In each page there is an active button in the main menu. How do you make active the one you want? I dont see any clases in the html. I can see the .navbar-nav li.active > a { in the css but not in the html. So how can I tell it which button to be active?. Also is there any way to add spyscroll? Thanks.
Thank you for your message and purchasing the template.
Yes, You are right active class is not in html that class is created from js/nav-menu.js. We suggest you please don't change it. The menu will be automatically activated when you load the page.
You can add scrollspy feature from the bootstrap official website (https://getbootstrap.com/docs/5.2/components/scrollspy/).
Still any doubt please send us mail at hello@chitrakootweb.com so we can explain in details.
How does active button in navbar works?
Last edited 7 months ago
Thank you for your message and purchasing the template.
Yes, You are right active class is not in html that class is created from js/nav-menu.js. We suggest you please don't change it. The menu will be automatically activated when you load the page.
You can add scrollspy feature from the bootstrap official website (https://getbootstrap.com/docs/5.2/components/scrollspy/).
Still any doubt please send us mail at hello@chitrakootweb.com so we can explain in details.
Hope! This will help you. Thank you.
Regards,
Chitrakoot Web.