Support

Account

Home Forums General Issues How to "enrich" menu items (li) with field values?

Unread

How to "enrich" menu items (li) with field values?

  • I’ve added synonyms to Pages using ACF. Now I want to populate these as a data-attribute to the li menu items for filtering. How would I do that?

    I’m looking for some way to ‘modify’ the li element of a nav menu.

    <li data-synonyms=”GET_FIELDS HERE”>

    Any suggestions on how to do that?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.