Website Building » Wix » How Do I Change My Pop-Up on Wix?

How Do I Change My Pop-Up on Wix?

Last updated on January 5, 2023 @ 10:35 am

HTML is the standard markup language for creating web pages. CSS is the language that describes how HTML elements are to be displayed on screen, paper, or in other media.

JavaScript is the programming language of HTML and the Web.

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.

In this article, we will discuss how to change the pop-up on Wix. Wix is a popular website builder that allows users to create and customize their own websites.

One of the features of Wix is the ability to add pop-ups to your website. Pop-ups can be used to display information, collect user input, or promote a product or service.

There are two ways to change the pop-up on Wix.

The first way is to use the Wix Editor.

The Wix Editor is a drag-and-drop website builder that allows you to add and customize elements on your website. To change the pop-up on your Wix website, follow these steps:

PRO TIP: If you are unsure about how to change your Wix pop-up, it is best to contact customer support. changing your pop-up without proper guidance could result in your website not functioning correctly.
  1. Log in to your Wix account and open the Editor.
  2. Click on the Pop-Up icon in the left sidebar.
  3. Click on the Settings tab at the top of the Pop-Up window.
  4. In the Settings tab, you can change the pop-up’s title, message, and call to action.
  5. You can also change the pop-up’s size, position, and animation.
  6. Once you have made your changes, click on the Save button at the bottom of the Settings tab.

The second way to change the pop-up on Wix is to use HTML.

If you want to customize the pop-up on your Wix website beyond what the Wix editor allows, you can use HTML to make more advanced changes. Here’s how:

  1. Go to the Wix editor and select the page or element that you want to add the pop-up to.
  2. Click on the “Add” button and choose “HTML Code” from the list of options. This will add an HTML code box to your page.
  3. In the HTML code box, you can add the HTML code for your pop-up. This can include the pop-up container, trigger element, and any content or styling that you want to include.
  4. If you want to style your pop-up, you can add CSS styles to the HTML code or link to an external CSS file.
  5. Once you have added your HTML and CSS code, click on the “Apply” button to save your changes.
  6. Test your pop-up to make sure it is working as intended. You may need to adjust the code or styling to get the desired result.

By using HTML, you can create custom pop-ups on your Wix website with more advanced functionality and styling options. Just be sure to test your pop-up thoroughly before publishing your site to ensure it is working as intended.

Here is an example of HTML code that you could use to create a pop-up on your Wix website:

<!-- Pop-up container -->
<div id="popup-container">
<!-- Pop-up content -->
<div id="popup-content">
<h1>Welcome to our website!</h1>
<p>Thank you for visiting. Take a look around and let 
us know if you have any questions.</p>
</div>
</div>

<!-- Pop-up trigger element -->
<button id="popup-trigger">Open Pop-up</button>

<!-- Pop-up JavaScript -->
<script>
// Get the trigger element
const trigger = document.getElementById('popup-trigger');

// Get the pop-up container
const popup = document.getElementById('popup-container');

// Add a click event listener to the trigger element
trigger.addEventListener('click', () => {
// Toggle the pop-up container
popup.classList.toggle('show');});
</script>

<!-- Pop-up CSS -->
<style>
/* Pop-up container */
#popup-container {display: none; /* Hide the container by default */
position: fixed; /* Fix the container to the page */
top: 0; /* Position the container at the top of the page */
left: 0; /* Position the container at the left of the page */
width: 100%; /* Make the container the full width of the page */
height: 100%; /* Make the container the full height of the page */
background: rgba(0, 0, 0, 0.7); /* Add a transparent black background */
z-index: 9999; /* Set a high z-index to ensure the pop-up appears 
above other elements */}

/* Pop-up content */
#popup-content {position: absolute; /* Position the content inside the container */
top: 50%; /* Center the content vertically */
left: 50%; /* Center the content horizontally */
transform: translate(-50%, -50%); /* Offset the content to center it */
width: 80%; /* Set the width of the content */
padding: 20px; /* Add some padding to the content */
background: white; /* Add a white background to the content */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Add a shadow to the content */}

/* Show the pop-up container */
#popup-container.show {display: block; /* Show the container */}
</style> 

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.