Struggling to implement this menu on my website, I encountered a problem: how do I keep the menu active?
I envision the menu bar changing when users navigate to the Home page, appearing like this: https://i.sstatic.net/z2fbX.png
I attempted to use the class ".active" within the <li>
tags, as shown below:
<li class="active"><a href="#home">Home</a></li>
Unfortunately, this method did not work as expected.
Here is the HTML code snippet:
<div class="rmm" data-menu-style='graphite'>
<ul>
<li><a href='#home'>Home</a></li>
<li><a href='#about-me'>About me</a></li>
<li><a href='#gallery'>Gallery</a></li>
<li><a href='#blog'>Blog</a></li>
<li><a href='#links'>Links</a></li>
<li><a href='#sitemap'>Sitemap</a></li>
</ul>
</div>
For a live demonstration, visit: http://jsfiddle.net/7jgkzdf7/
I previously asked for help with this issue, but made errors in articulating my problem. Apologies for any confusion! Seeking assistance in resolving this matter now.
Thank you in advance!!!