Skip to content

Commit aa3ce20

Browse files
Update navbar.php
1 parent 6560581 commit aa3ce20

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/navbar.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<nav>
2-
<a href="?page=home">Home</a>
3-
<a href="?page=pricing">Pricing</a>
4-
<a href="?page=about">About</a>
5-
<a href="?page=contact">Contact</a>
6-
<a href="?page=faq">FAQ</a>
2+
<a href="?page=home" <?php if ($current_page === 'home') echo 'class="active"'; ?>>Home</a>
3+
<a href="?page=pricing" <?php if ($current_page === 'pricing') echo 'class="active"'; ?>>Pricing</a>
4+
<a href="?page=about" <?php if ($current_page === 'about') echo 'class="active"'; ?>>About</a>
5+
<a href="?page=contact" <?php if ($current_page === 'contact') echo 'class="active"'; ?>>Contact</a>
6+
<a href="?page=faq" <?php if ($current_page === 'faq') echo 'class="active"'; ?>>FAQ</a>
77
</nav>

0 commit comments

Comments
 (0)