Wordpress menu with a Custom id on ul

/ Published in: PHP
Save to your folder(s)

This will give <ul> for the wordpress Menu

Copy this code and paste it in your HTML
  1. <?php wp_nav_menu(array('theme_location' => 'primary', 'container' => 'ul', 'menu_id'=>'nav', )); ?>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.