WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Creating an id="current" for the blog page (3 posts)

  1. blicht454
    Member
    Posted 3 years ago #

    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!

  2. blicht454
    Member
    Posted 3 years ago #

    Correction: The blog page is NOT being recognized as a page.

  3. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic