WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Active Links Not working correctly with static pages.. (3 posts)

  1. keysuuh
    Member
    Posted 3 years ago #

    my site: http://imkeysa.com

    here is the code I'm using for my navigation:

    <li<?php
                    if (is_page('home'))
                    {
                    echo " id=\"current\"";
                    }?>>
                    <a href="<?php bloginfo('url') ?>BLOG</a>
            </li>
    
      <li<?php
                    if (is_page('blog'))
                    {
                    echo " id=\"current\"";
                    }?>>
                    <a href="<?php bloginfo('url') ?>/blog">BLOG</a>
            </li>

    if you visit my website you'll see just one "current" link which is -Blog.

    what can I do to fix this, to where the navigation lists both pages while the current link works?

  2. keysuuh
    Member
    Posted 3 years ago #

    anyone?

  3. keysuuh
    Member
    Posted 3 years ago #

    I managed to find the problem :)
    Peace.

Topic Closed

This topic has been closed to new replies.

About this Topic