header-logo
Getting started with WixBuild your website and business with Wix. Try using our AI tools to create your website, customize templates, or hire professionals to build or enhance your online presence.
Creating a websiteRead how to use the Wix Editor and manage content on your site. Discover how to protect your visitors' privacy and make your site accessible.
Account & billingReview your account settings, manage your subscriptions and plans and understand your invoices.
Using the Wix mobile appsUse our mobile apps to run your business efficiently on the go and set up a dedicated app for your site members to stay in touch.
Connecting a domainFollow our step-by step guides to learn how to purchase, connect or transfer a domain for your site, and find out how to keep your site’s data secure.
Managing your businessGet tools to grow your business and web presence. Find the right tools for your specific needs, set up online payments and keep track of your site's analytics.
Promoting your siteLearn to make your site more visible promoting it on search engines, sending emails and running paid ads. Improve your online presence with practical tips.
Studio, Partners & EnterpriseGet the most out of your Studio or Enterprise account with advanced features that'll help you work more efficiently.
Need more help?Find solutions for site performance and technical issues, learn about issues we’re working to fix or contact us for help.
placeholder-preview-image
Wix LearnImprove your skills with our courses and tutorials.
Wix BlogGet tips for web design, marketing and more.
SEO Learning HubLearn to increase organic site traffic from search engines.
Website developmentBuild a custom site using our full-stack platform.
Hire a ProfessionalGet matched with a specialist to help you reach your goals.
placeholder-preview-image
In this article
  • Adding an embed
  • Setting up an embed
  • Adjusting the sizing of the displayed content
  • Guidelines for adding embeds to your site

Wix Editor: Embedding a Site or a Widget

In this article
  • Adding an embed
  • Setting up an embed
  • Adjusting the sizing of the displayed content
  • Guidelines for adding embeds to your site
Display content from external sources by embedding a code snippet or a URL on your site. You can use embeds to create widgets that enhance your site, such as weather and stock widgets, or display external sites on your page.   

Adding an embed

Add an embed to your site directly from the Add Elements panel. You can choose whether to add a code snippet to your site, or embed an external URL.  

To add an embed to your site:

  1. Go to your editor.
  2. Click Add Elements  on the left side of the editor.
  3. Click Embed Code.
  4. Click Popular Embeds.
  5. Choose the type of embed you want to add to your site:
    • Embed HTML: Embed a code snippet to display a widget on your site pages and set it up.
    • Embed a site: Display an external site in a window on your page.
  6. Click your chosen embed to add it to your site.
The Code tab of the Add Elements panel in the Editor. HTML and site embeds are highlighted.

Setting up an embed

After you've added an embed, enter the relevant code snippet or URL to set it up and display sites and widgets to your visitors.

To enter the code / URL:

  1. Go to your editor.
  2. Click the embed on your page.
  3. Select the relevant option to enter the details:
    • HTML: 
      1. Click Enter Code.
      2. Enter the snippet under Add your code here.
    • Site: 
      1. Click Enter Website Address.
      2. Enter the URL under What's the website address?.
  4. Click Apply to save the snippet / URL.
  5. (Optional) Enter alt text for the embed under What's in the embed?
A screenshot of the HTML settings in the Wix editor.
Important:
  • Only HTTPS codes and URLs are displayed.
  • Some sites have security policies that forbid them from being embedded on external platforms such as Wix. As a result, they won't appear in the embed after pasting their URL. This is controlled by the site's external coding, and it is not possible to bypass this within Wix.
  • We cannot provide support for external codes that were not created or tested by Wix. If you are experiencing an issue with your code snippet, please contact the provider directly.

Adjusting the sizing of the displayed content

Embedded elements often include pre-defined width and height in pixels, set by the service they were acquired from, as in the example below: 
1<iframe width="560" height="315" 
2       src="https://www.youtube.com/embed/mdWHYvQoY8g" 
3        frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
4</iframe>
These settings could potentially crop the content if the iFrame container is smaller than 560 px * 315 px. To prevent this from happening, replace the px values with percentage units and set them to 100% as shown below: 
1<iframe width="100%" height="100%" 
2        src="https://www.youtube.com/embed/mdWHYvQoY8g" 
3        frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
4</iframe>
Note:
The HTML and URL elements in our editor are iFrames. Therefore, the code or site you are embedding won’t be responsive, even if it is originally.

Guidelines for adding embeds to your site

When embedding code or URL on your site, there are some important guidelines you should keep in mind in order to ensure that the element is displayed properly:
  • Always make sure the code you are embedding is up to date and HTML5 compatible. Most browsers don't display pages and scripts properly if they were written using older versions of HTML. 
  • There is no character limit for the HTML and Embed a Site elements. 
  • Your code must contain HTTPS and not HTTP. 
  • HTML documents are described by HTML tags. HTML tags normally come in pairs like <p> and </p>. The first tag in a pair is the start tag; the second tag is the end tag. This format of the tags is crucial for maintaining the structure of the page you are trying to embed.
What's next?

Helpmate

Hello

Need a bit more guidance?
Unlock personalized helpLog in to get the most out of Helpmate.