I have created a menu with the name <strong>"alggemeen"</strong> and added some items to it.
<a href=" " rel="noreferrer"><img src=" " alt="enter image description here"></a>
I have assigned the menu to the theme location Footer menu with the slug <strong>'footer-menu'</strong>.
<a href=" " rel="noreferrer"><img src=" " alt="enter image description here"></a>
Now I know how to display the content of menu and also the menu_location. But I want to display the name the wordpress admin will provide in backend for the menu, on my website.
I would like to echo the name of the menu that has been allocated to the menu with a theme location of
.
So as shown above in the picture Currently alggemeen is the menu assigned to Footer Menu so my front end should echo algemeen.
<a href=" " rel="noreferrer"><img src=" " alt="enter image description here"></a>
I have assigned the menu to the theme location Footer menu with the slug <strong>'footer-menu'</strong>.
<a href=" " rel="noreferrer"><img src=" " alt="enter image description here"></a>
Now I know how to display the content of menu and also the menu_location. But I want to display the name the wordpress admin will provide in backend for the menu, on my website.
I would like to echo the name of the menu that has been allocated to the menu with a theme location of
Code:
'Footer Menu(slug = 'footer-menu')'
So as shown above in the picture Currently alggemeen is the menu assigned to Footer Menu so my front end should echo algemeen.