Add a WordPress menu in PHP

A while back, I found that you have to use the following code to add the primary navigation to X Theme using PHP.

<?php x_output_primary_navigation(); ?>

Iā€™m now trying to add a different menu (other than the primary nav) using PHP. What code would I use for this?

Hello @coloffdigital,

Thanks for asking. :slight_smile:

Please note that this customization is outside the scope of support we can offer as it require changes in Core functionality of Theme. However, you can refer following article to register and add multiple custom menus.

I suggest you to use child theme for any core changes. You can refer following resources to download and setup child theme.

https://theme.co/apex/child-themes

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.