I'm trying do a navigation bar that has a "current" class to whichever page we're on. But the navigation bar is on a header.php page and I use an include tag to bind pages with the header.
How would I go about this? I assumed I would use something similar to;
if(strpos($_SERVER['REQUEST_URI'], 'index') !== false){;
But I'm not confident enough to tackle this on my own.
https://jsfiddle.net/zo5oy46q/
Thankyou!