• How do I create a “active” menu? Here is an example:
    http://thinkfuzzy.net/meny/index.html

    How do I create a menu like this in wordpress?

    I found this thread:
    http://ww.wp.xz.cn/support/topic/106277

    But I’m not to good with php so if someone could explaine me how to do this I would be very greatfull =)

    This is the HTML for my menu I want to edit:

    <li><a href="index.php">Hovedsiden</a></li>
    			 <li><a href="?page_id=86">Profil</a></li>
    			 <li><a href="?page_id=87">Galleri</a></li>
    			 <li><a href="?page_id=17">Portef&oslash;lje</a></li>
    			 <li><a href="?page_id=88">Kontakt</a></li>

    My web: http://www.thinkfuzzy.net

Viewing 1 replies (of 1 total)
  • Thread Starter fUzZy89

    (@fuzzy89)

    I found the solution 🙂

    For those who wonder about the same, here is what I did:

    <ul>
     <li <?php if ( is_home() ) {?>class="current_page_item"<?php } ?>><a href="<?php bloginfo('url'); ?>">Forside</a></li>
     <?php wp_list_pages('title_li=&depth=-1'); ?>
    </ul>

    To show wish is active:

    .current_page_item{
    	background: yellow;
    }

Viewing 1 replies (of 1 total)

The topic ‘Active menu, how to?’ is closed to new replies.