How to add CSS class in WordPress NAV anchor tag? December 30, 2017 | Md. Shahidul Islam

I am using Bootstrap 4 and my menu structure like this:

Let’s start adding menu dynamically on wordpress custom theme.

I am calling WP Nav in header.php file like this:

Now, add this function on function.php file.