In my pages PHP
I use a include
to call a file that contains my menu:
<?php include("menu.php"); ?>
Menu file:
<li class="current-menu-item"><a href="#">Hosting</a>
<ul>
<li><a href="hosting-shared.php">SHARED HOSTING</a></li>
<li><a href="free-hosting.php">FREE HOSTING</a></li>
<li><a href="cloud-hosting.php">CLOUD HOSTING</a></li>
<li><a href="reseller-hosting.php">RESELLER HOSTING</a></li>
</ul>
</li>
<li><a href="domains.php">DOMAINS</a></li>
<li><a href="#">Servers</a>
<ul>
<li><a href="cloud-vps.php">CLOUD VPS</a></li>
<li><a href="dedicated-servers.php">DEDICATED SERVERS</a></li>
<li><a href="order-slider.php">ORDER SLIDER</a></li>
When the menu is active you get this class
class="current-menu-item"
How do I enter the class
active
only in the menu accessed?