0

In Magento 2.3 I'm trying to add a custom class instead of nav item to a specific menu item. In my case it's "Company Structure". A perfect solution would have each item with a distinct class like "nav item companystructure", but if I can just do one I'll take it.

I know how to modify ALL items in customer_account.xml, but I can't figure out how to change the <li> class for a specific item.

Balwant Singh
1,2902 gold badges12 silver badges29 bronze badges
asked Oct 11, 2019 at 16:32

1 Answer 1

0

Please check with below file which is loaded in menu code :

app\code\Magento\Theme\Block\Html\Topmenu.php
answered Oct 11, 2019 at 17:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.