Use php to highlight the current page

/ Published in: PHP
Save to your folder(s)

What this does is takes the name of your document using the basename function. And then you echo out the current id (id="current") if this page is present. Then using CSS we can give the current id an active color.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.