Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The bug is in themes/opcv/js/opcv.js.
Around line 273 and 274 it looks like this:
jQuery('.menu-343 a').attr('href', '#work');
jQuery('.menu-342 a').attr('href', '#about');
Now just go back to the front page and view the source code, you should find something like:
<div id="navigation">
<div class="section">
<ul id="main-menu" class=""><li class="menu-239 first active"><a href="/" class="active">Home</a></li>
<li class="menu-357"><a href="/work">Work</a></li>
<li class="menu-356"><a href="/about">About</a></li>
<li class="menu-240 last"><a href="/contact">Contact</a></li>
</ul>
</div>
</div>
You should modify opcv.js and change it to:
jQuery('.menu-357 a').attr('href', '#work');
jQuery('.menu-356 a').attr('href', '#about');
Comments
Comment #1
Jeffrey C. CreditAttribution: Jeffrey C. commentedComment #1.0
Jeffrey C. CreditAttribution: Jeffrey C. commentedFixed tags.