.w--current
class combined with your link class (e.g., .nav-link.w--current
) to style the active menu item.To style the "Current" state of a menu item in Webflow using custom CSS, you need to target the w--current
class that Webflow automatically applies to links pointing to the current page.
w--current
to a Navbar Link or Nav Menu Item that matches the current page URL..w--current
as a modifier.Example selector:
nav-link
, your custom style should target:.nav-link.w--current
<style>
tag inside an Embed component on the page.<head>
section for site-wide styles.Example CSS:
<style> .nav-link.w--current { background-color: #000; color: #fff; font-weight: bold; }</style>
To style the “Current” nav item in Webflow using custom CSS, target the .w--current
class added to active links, combine it with your base link class like .nav-link.w--current
, and insert your CSS via an Embed or the Custom Code settings.