Navigation Menu
-
I’m using the antisnews theme on WordPress 3.0, and am trying to add menu support.
What snippet should I place in my function.php folder?
I believe this is the related code in the header.php
</div> <div id="antisnav-navbar"> <ul id="antisnav"> <li<?php if ( is_home() ) { ?> class="current_page_item"<?php } ?>><a href="<?php echo get_option('home'); ?>"><?php _e("Home",'Antisnews');?></a></li> <?php if( current_user_can('manage_options') && $AntisnewsOptions[$themeoptionsprefix.'_hideaddpostlink'] == 'show' ) { ?> <li><a href="<?php echo get_option('home'); ?>/wp-admin/post-new.php"><?php _e("Add Post","Antisnews");?></a></li> </a> <?php } ?> <?php $excludepagepostid=$AntisnewsOptions[$themeoptionsprefix.'_pagecatidstoexclude']; if(!isset($excludepagepostid) || empty($excludepagepostid)){$excludepagepostid='';}?> <?php if( $AntisnewsOptions[$themeoptionsprefix.'_pagesorcategories'] == 'pages'){ wp_list_pages('title_li=&sort_column=menu_order&exclude='.$excludepagepostid); } elseif( $AntisnewsOptions[$themeoptionsprefix.'_pagesorcategories'] == 'categories'){ wp_list_categories('title_li=&sort_column=menu_order&exclude='.$excludepagepostid);} else{ wp_list_pages('title_li=&sort_column=menu_order&exclude='.$excludepagepostid);}?> </ul> <div class="clear"></div> </div>
Which portion should I replace and with what code?
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Navigation Menu’ is closed to new replies.