Page Nav Filter

<?php
function ter_page_nav_filter($menu){
$replace = array('<div class="menu">','</div>','<ul>','</ul>');
$menu = str_replace($replace,'',$menu);
return $menu;
}
add_filter( 'wp_page_menu', 'ter_page_nav_filter',10);
?>

0 Comments

You must be logged in to post a comment.