on-internet
← Community

How do I create a custom header in Magento 2 using HTML and CSS

Stack Overflow ·

I want to make a custom header for my theme in Magento 2. I managed to create a working module which just outputs "Hello World" right now and gets displayed in the header section of my shop. Now, how do I remove the old header panel and tell my new one how to look like? I got really confused how Magento uses CSS and LESS or HTML. Can I use HTML code at all? I have a normal HTML website with a link to my Magento shop. I want a smooth transition which means I want my header in Magento look exactly like the one on my "normal" website. How do I achieve that? I have no idea where to start.

Comments

Sign in or sign up to comment and upvote.

No comments yet.