If the_title() echo into a HTML class
-
Can’t get this to work for some reason;
<li><a href="#" class"<?php if (the_title()=='Home' { echo 'current-page'; } ?>">Home</a></li>
Should I be using a different wordpress function? Any help would be appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘If the_title() echo into a HTML class’ is closed to new replies.