How to add html attributes to the "ul" html tag with "wp_nav_menu" function?

enter image description here

I’m trying to improve my learning WordPress is very new, and the first theme.
My problem is,

With the function “wp_nav_menu” into the “ul” tag,

data-hover = "dropdown" data-animations = "zoomIn zoomIn zoomIn zoomIn"

I want to add html attributes, how can I do that ?,

My aim is to make a hover dropdown menu.

I’ve added pictures and source code below.

Thank you very much in advance for your help.

Read more here: How to add html attributes to the "ul" html tag with "wp_nav_menu" function?

Leave a Reply

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