Magento2.3: How to set the border bottom for whole header?
-
20-03-2021 - |
Question
I have a megamenu in header and want to set the border bottom for the whole header and it should be aligned with the megamenu border but its not working as expected.
I have tried that into the following path:
vendor/magento/module-theme/view/frontend/templates/html/header.phtml
My requirement is to put the grey border to whole header and the border should be the same alignment with the border given in megamenu.
Any help will be appreciated!
No correct solution
OTHER TIPS
you can enable template hints, and check it out by yourself. This is how you can know any phtml
and blocks
. Make sure your website is in developer mode to do this.
Go to Store > Configuration > Advanced > Developer > Debug
Change value to Yes
of Enabled Template Path Hints for Storefront
Direct editing in the template file is not a good idea.
Please update your current theme CSS file and add the below code in your CSS file.
.page-header { border: 1px solid #000000;}
You can add color code accordingly.