I'm on Magento 2.1, the header links are rendered with this structure:
<ul class="header links">
<li>...</li>
<li>...</li>
...
</ul>
I need to remove the class .header
from <ul>
tag and add another ones.
Also, I need to add some HTML inside <li>
tags.
How can do it?
Best Answer
You can change
css_class
class "header links" by followingIn default theme you can change or if you have specific theme you change there.
/vendor/magento/theme-frontend-luma/Magento_Theme/layout/default.xml
If you want to add extra links ( Taken from customer module ). you can use below code in you
layout
by yourblock
classesNeed to create block for
href=""
/vendor/magento/module-customer/Block/Account/Link.php
You can add html by the referencing
<referenceContainer name="header.panel">
Hope this helps.