1

I want to add a title attribute on the topmenu in Magento 2. for example <a href="category_url" title="category_name">category_name</a>

enter image description here

1 Answer 1

0

For that you would want to rewrite the Magento\Theme\Block\Html\Topmenu blocks _getHtml method. Here is a link to another post that answered how to create the <preference> to rewrite that block.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.