4
I use awesome font as a menu. The initial color of the icon is yellow. How do I make the icon stay white when it’s on the current page? I’ve tried using css but unsuccessfully.
<div class="centralizar">
<?php $paginaCorrente = basename($_SERVER['SCRIPT_NAME']);?> <!--Recupera pagina corrente em relação raiz do site;basename recupera o nome da pagina--> <!--RODAPE-MENU-->
<div id="rodape-menu">
<ul >
<li><a href="index.php" <?php if($paginaCorrente == 'index.php') {echo 'class="corrente"';} ?>><span class="fa fa-home"></span></a></li
<li><a href="servicos.php" <?php if($paginaCorrente == 'index.php') {echo 'class="corrente"';} ?>><span class="fa fa-cogs"></span></a></li>
How does the application know "what is the current page"?
– Jéf Bueno
I use javascript code on the page, which identifies the current page
– Maria Do Carmo Vianna De Menez
A suggestion, why don’t you leave these values static? That is, the page you are staying with the color that should be.
– Marconi
@Mariadocarmoviannademenez updated the answer.
– mercador