0
Reply

geting page id and class at the same time to display a DIV

John Joe

John Joe

11 years ago
1k
I would like to get page id and page class to display a div on that specific page:


for example:  Body# Great .Betst   id=great    class=best

Div id="first-Div"

LOGIC 

<?php    if page id ="great" and class="bets"   {?>

Display  First-Div

<?php{?>



How do I do this?