Creating an id="current" for the blog page
-
I’m trying to create an id=”current” for all of my menu items so that the user can see what page they’re on. It’s working for every page, using the following code:
<?php if (is_page('Home')) { echo " id=\"current\""; }?>>
The only problem is, for the page where I have my posts coming in (the blog page), this code doesn’t work, because the blog page is actually being recognized as a page. (I’ve just set my posts to appear there via the Reading Settings / Front page displays.)
Any help would be appreciated!
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Creating an id="current" for the blog page’ is closed to new replies.