WordPress.org

Ready to get started?Download WordPress

Forums

Menu editing (2 posts)

  1. oneruffryder
    Member
    Posted 1 year ago #

    Can someone help me to edit my site-menu.
    I have tried with several plugins but nothing helped.So my theme-menu is built to pull inside the categories on alphabetic way,which i want to change so i can manually add categories and similar trough wp dasboard -appearence-menu :

    This is code i found iniside header php which i belive needs to be modifed but i dont know how

    <div class="menubar"><!-- BEGIN MAIN NAV -->
    			<ul id="nav">
    				<?php if ( is_home() ) { ?>
    					<li class="current-cat"><a>">Home</a>
    				<?php } else { ?>
    
    <li><a>">Home</a></li>
    				<?php } ?>
    				<?php
    if (function_exists('put_cat_icons'))
    	put_cat_icons( wp_list_categories('orderby=name&title_li=&depth=3'.'&echo=0'));
    else
    	wp_list_categories('orderby=name&title_li=&depth=3'); ?>
    
    		</div><!-- END MAIN NAV -->
  2. Max
    Member
    Posted 1 year ago #

    What you want is the new WordPress Custom Navigation Menu's. Read the codex on updating your teme to support this:

    wp_nav_menu

    And please put your code in back-ticks or use pastebin... Going to ask a mod to look at your posting to fix it - but doing it your way breaks the forum...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags