Website Building » Wix » How do I make my Wix header responsive?

How do I make my Wix header responsive?

Last updated on January 3, 2023 @ 2:11 am

Creating a responsive Wix header is simple, and can be done with a few simple steps.

First, open your Wix header file in a text editor.

GREAT NEWS:

Exciting update! We've collaborated with Wix to offer WBI users with a free plan for all website creation needs - Explore the details here.

Next, locate the <head> section of your header file, and add the following code:

<meta name="viewport" content="width=device-width, initial-scale=1">

This code tells the browser that your Wix header should be responsive, and that the initial scale should be set to 1 (meaning that the header will be displayed at its original size, no matter what the width of the device is).

Next, locate the <body> section of your header file, and add the following code:

<div class="container">

This code tells the browser that there is a container (a division in the page) with a class of “container”, and that inside of that container is a division with a class of “div”. This division will be the main part of the responsive Wix header, and will be displayed at its original size no matter what the width of the device is.

PRO TIP: If you are not familiar with coding or working with Wix, we recommend that you seek help from a professional before attempting to make your Wix header responsive. Making your Wix header responsive can be complex and may result in your website looking broken or unfinished if not done correctly.

Finally, add the following code to the <div> section of your header file:

.responsive {

This code tells the browser that the .responsive class should be applied to the division inside of the .

container division, and that the division should be displayed at its original size no matter what the width of the device is.

That’s all there is to it! Your Wix header is nowresponsive.

If you want to make sure that your Wix header is always displayed at its original size, regardless of the width of the device, you can add the following code to the <head> section of your header file:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

This code tells the browser that the Wix header should be displayed at its original size, no matter what the width of the device is.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.