i have an HTML menu like this
<ul id="menu-main-menu" class="menu">
<li class="current_page_item"> <a href="index.html"> Home </a> </li>
<li class="menu-item-simple-parent"> <a href="aboutus.html">About us   <i class="fa fa-caret-down"></i></a>
<ul class="sub-menu" style="left:0px;width:340px;">
<li data-content="mission"> <a href="#">Mission</a> </li>
<li data-content="vision"> <a href="#">Vision</a> </li>
<li data-content="management"> <a href="#">Management</a> </li>
</ul>
</li>
I created this menu in wordpress. In that, submenu created as custom link. can I add data-content attribute for my wordpress submenu as shown in HTML code.
Try this:
Tutorial -> https://wpbeaches.com/adding-attribute-wordpress-menu-item/