Popular
Newest
Updated
Sign in
Create an account
Categories
Admin Templates
203
Multipurpose Templates
164
Landing Pages
148
Portfolios & Resumes
86
Ecommerce
46
Blogs & Magazines
26
Directories & Listings
26
UI Kits & Website Builders
10
Documentation
5
Specialty
103
Topics
General
276
Business & Corporate
118
Design & Creative Services
114
Apps & Software
53
Retail & Shopping
34
Startups & SaaS
27
Marketing & Conversion
21
Restaurants & Cafes
17
Education & Learning
16
Jobs & Hiring
15
See all →
Compatible with
Bootstrap
771
PHP
41
React
41
Tailwind CSS
37
Laravel
26
Python
24
Angular
23
Django
20
Vue.js
20
ASP.NET Core
14
See all →
Discussion on
Cleany - HTML5 Landing Page
Details
Discussion
Back to discussions
Showing 1 – 2 of 2 replies
←
1
→
For those wondering, the navbar smooth […]
saeros
PURCHASED
9 years ago
For those wondering, the navbar smooth scroll has a bug, making the active link appear white. To fix it, head to the custom.js file and replace the script below "Smooth Scrolling" with the following:
$(".navbar-nav li a[href^='#']").on('click', function(e) {
e.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 300, function(){
window.location.hash = hash;
});
});
Cheers
Reply
JamesStokes
PURCHASED
8 years ago
Thank you - great fix!
Reply
simplesphere
SELLER
8 years ago
Thanks for the hint :)
Reply
Close
For those wondering, the navbar smooth […]
$(".navbar-nav li a[href^='#']").on('click', function(e) {
e.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 300, function(){
window.location.hash = hash;
});
});
Cheers