Anyone who is a PHP guru, can you tell me what's wrong here?
The following two lines of code are two items in a main menu:
PHP Code:
<li class="hometab <?php if ( is_home() 
{ ?>current_page_item <?php } ?>"><a href="<?php echo get_option('home'); ?>/"><?php echo get_option('ptthemes_home_name'); ?></a></li>
<li class="hometab <?php if ('http://testsite.com/?page_id=36') { ?>current_page_item <?php } ?>"><a href="http://testsite.com/?page_id=36" title="About">About</a></li> I am trying to have the links have a certain background color on mouse hover, as well as when the respective page is loaded.
The first line of code works perfectly, the second does not, and I can't figure out why. On the second line, the background color appears regardless of what page is actually showing, rather than only when that line's page is showing.
Did I input the url incorrectly?
Thanks for any help!