When a navigation link in Webflow is in the selected (current) status, Webflow automatically assigns it a special pseudo-class called Current
that can be styled in the Designer but not directly targeted using custom CSS in the usual way.
:current
, :active
, or a special class like .current
in the published CSS, but it adds a custom class dynamically with the full name — such as .nav-link.w--current
..w--current
class, which Webflow appends to the original class of that nav link.nav-link
, Webflow publishes it as class="nav-link w--current"
when on the linked page..nav-link.w--current
.To change the text color of the current nav link, use:
.nav-link.w--current { color: #000000; }
You can include this in your Page Settings > Custom Code under Inside