0
Answer

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

John Joe

John Joe

11y
1.1k
1
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?