Good Day

I am using a wordpress theme, and theme is adding menu items and ignores the Wordpress menu editor. The way it adds menu's is like this:

It adds all pages to the menu, and in the order you add the page - So if you want the first menu item to be last, you have to delete its page, and add it again - then it will appear as the last menu item.

How can I prevent this from happening and have control over my menu items?

relevant code - all places where the containing 'ul.dropdown' hosting the menu items appear:

**functions.php**:

```
// Add ID and CLASS attributes to the first <ul> occurence in wp_page_menu
function add_menuclass($ulclass) {
return preg_replace('/<ul>/', '<ul class="reset dropdown">', $ulclass, 1);
}

```

and

**dropdown.php** - the whole file

```
<?php wp_nav_menu(array( 'theme_location'  => 'primary', 'sort_column' => 'menu_order', 'menu_class' => 'nav-menu', 'container_class' => 'nav-menu',) ); ?>

<div class="clear"></div>

```