Adding attribute to bootstrap nav walker ul

Im using a bootstrap nav walker for a wordpress site and trying as im trying to re-create a premium theme (only temporary) so matching their markup to save time.

I need to add a attribute to the so that its … but i cant see anything which can help me how to do so. I can see how to add attributes to menu links but not the menu itself (without adding it via jQuery etc).

My output for the menu is pretty simple:

<?php
wp_nav_menu( array(
    'menu'       => 'top',
    'depth'      => 2,
    'container'  => false,
    'menu_class' => 'site-menu scrollable-content',
    'walker'     => new wp_bootstrap_navwalker())
);
?>

Read more here: Adding attribute to bootstrap nav walker ul

Leave a Reply

Your email address will not be published. Required fields are marked *