Hi - I am having an issue as well....
My template has tabs which change colour based upon the current page.
I have just modified the menu to include a ez-page "Testimonials". This is ID=9. Below is the standard template code for specials and the new one I have added
Code:
<?php
if ($current_page_base == 'specials') { $active = 'tab_active';
} else { $active = '';
}?>
<li id="<?php echo $active;?>"><a href="index.php?main_page=specials"><?php echo TOP_MENU_SPECIALS;?></a></li>
<?php
if ($current_page_base == 'page&id=9') { $active = 'tab_active';
} else { $active = '';
}?>
<li id="<?php echo $active;?>"><a href="index.php?main_page=page&id=9"><?php echo TOP_MENU_TESTIMONIALS;?></a></li>
The problem is I am not getting the selected tab "active" (which changes its colour) using $current_page_base == 'page&id=9. Is there something special to use for a ez-page in this context ???
Website http://www.adorablebabycakes.com.au
Thanks
Bookmarks