![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/926d27a12fc482c2f1706d021bf503e8-87a1c39.jpg)
Hi, I'm new to Beans and have been trying to move the primary menu to the area before the header. So far I have not been able to a) find the name of the primary menu and b) find out how to move it to the place I want. That's what I did so far, but without result:
// Reposition main menu.
remove_action( 'beans_header', 'beans_primary' );
add_action( 'beans_header_before_markup', 'beans_primary' );
Any help is highly appreciated!
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/926d27a12fc482c2f1706d021bf503e8-87a1c39.jpg)
I figured it out. Thanks to Mariusz Wachowski I am starting to understand it better now.
Nice framework!!
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/46e6ea3d70978cf6d33a2cd939293c56-87a1c39.jpg)
Hi Karen, I couldn't quite find where you found your answer, but I usually use
beans_replace_action( 'beans_primary_menu' , 'beans_header_before_markup' );
For future reference I found it easier if an answer was within the comments.
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/ee0464443fa9842713a735791bbea859-87a1c39.jpg)
Hi Didou Schol, your anwser is totally correct.
I would suggest you to use beans_modify_action()
instead, the only difference is because this will keep original values in case you want to reset them again using beans_reset_action()
.
While using beans_replace_action()
will replace original values. The beans_reset_action()
now will get the replaced values instead of original ones.
Cheers!
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/5ccf4f813832affa37f45fa1847e1491-87a1c39.jpg)
Hi, I'd like to move the menu above the header as well, but which file am I editing with above code?
Regards Tony
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/dd8a7951ddc458f9e92259a96cabdf4d-87a1c39.jpg)
Hey Tony
Add the code directly to the child theme functions.php file.
Here is also some more information: https://wpbeansframework.com/2016/12/04/adding-a-new-menu/