Source: https://nishanth-fern-test.docs-staging.pageloop.ai/desktop/inserting-an-image-in-a-pop-up

# Insert an image in a Pop-up

Visual Editor enables you to insert an Image in a Pop-up template directly using the UI, without needing to edit the JSX code. Embed images in any Pop-up template by adding their URL. Any image you want to insert in a Pop-up has to be first [hosted on the Whatfix dashboard](/desktop/what-are-whatfix-videos-4), or on an online image-sharing website like _Imgur_, _ImgBB_, and more. Once hosted, use the image URL to add the images.

Note

- Ensure that you have the image URL before proceeding.
- The image URL must contain **https** if the Pop-up is displayed on a secure webpage.
- Only .jpg, .gif, and .png image formats that are up to 4 MB in size are supported.
- Whatfix enables you to upload up to 100 images from your local drive for use in your Pop-ups. Once this limit is reached, you will see the error message. However, this limit can be increased by contacting [support@whatfix.com](mailto:support@whatfix.com?Subject=Upload%20limit%20reached\&Body=Hello%20Team%2C%0A%0AMy%20account%20has%20reached%20the%20upload%20limit%20to%20add%20images%20and%20videos%20in%20Pop-ups.%20Please%20increase%20the%20maximum%20limit%20for%20images%20and%20videos.%0A%0AMore%20information%3A%0A%0AThanks%20and%20regards.).

Use the following steps to insert an image in a Pop-up using the Visual Editor:

1. Log in to the application where you want to create content, and then launch **Whatfix Studio**. ![CLM\_editor plug in2](/images/f6/CLM_editor-plug-in-2-f67cdef9.png)
2. On the Whatfix Studio, click **Popup**. ![clm\_studio\_pop-up](/images/35/clm_studio_pop-up-35671384.png)
3. Choose the color theme using the **Theme** dropdown. ![2024-10-18\_16-49-43.png](/images/f5/2024-10-18_16-49-43-1-f5099a90.png)

   Note:

Use custom color by entering the hex color code in the text box. ![Add hex color code for Pop-ups before you select a template](/images/c5/Studio_Pop-ups_hexcolor_code-c5c40d28.png)

1. Select one of the Pop-up templates, for example, **Feature Onboarding**. ![Select\_template](/images/80/Select_template-804c7264.png)
2. Click the image placeholder to open the **Image Froala Toolbar**. ![Image\_froala\_toolbar](/images/e8/Screenshot-2024-07-05-at-12.28.20-PM-e84670da.png)
3. Click the **+** icon. ![click\_add\_componentnew](/images/d6/click_add_componentnew-d6a2e498.png)
4. On the **Add Component** dialog box, click **Image**. ![click\_image](/images/35/click_image-1-35d22542.png)
5. Paste the embed URL of the image you want to insert or upload an image from your local drive or Whatfix Gallery. ![click\_add\_img](/images/65/click_add_img-65189c87.png)
6. Click **Insert**. ![click\_insert](/images/b4/click_insert-1-b49f9c7b.png)
7. The image gets added in the Pop-up.

Note:

Once the image gets added, make the following changes using the **Image Froala Toolbar** :

- Resize the image height using the **Resize options** icon.

![click\_image\_resize](/images/16/image_resize-160ef33b.png)

- Enable the **Ignore safe area** toggle to extend the image beyond the safe area boundaries. ![ignore\_safe\_area\_toggle](/images/a2/Screenshot-2024-07-05-at-1.53.30-PM-a298e7bf.png)
- Use the **Align** icon to align the image to left, right, or center. ![Align\_icon](/images/87/Screenshot-2024-07-05-at-2.04.10-PM-870931dc.png)
- Use the **Vertical Align** icon to align the image vertically. ![Vertical\_align](/images/e0/Screenshot-2024-07-05-at-2.04.10-PM-1-e0b8164e.png)
- Use the **Alternative Text** icon to provide a textual description of the image content. ![Alternative\_text](/images/03/Screenshot-2024-07-05-at-2.04.10-PM-2-03ebec01.png)
- Use the **Replace Image** icon to replace the existing image. ![Replace\_icon](/images/42/Screenshot-2024-07-05-at-2.04.10-PM-3-420bfe09.png)
- Use the **Remove Component** icon to delete the image. ![Remove\_Component](/images/54/Screenshot-2024-07-05-at-2.04.10-PM-4-54c833a4.png)

your title goes here

- Use the **Drag and Drop** feature to move or re-position the image around the Pop-up.
- Using the Drag Handlers, the image can be moved or re-positioned both vertically (column-wise) and horizontally (row-wise).

![Drag and Drop](/images/8a/Screen-Recording-2024-07-05-at-2.16.06-PM-1-8ad906b2.png)

your title goes here

When you make changes to the Pop-up using the Drag Handlers, you may not be able to undo certain changes. In that case, you may need to re-create the Pop-up. For more information, see [Can I undo the changes made with the Drag Handlers?](/desktop/can-i-undo-the-changes-made-with-the-drag-handlers)

1. Finish creating the Pop-up and click **Save Popup**. ![click\_save](/images/3d/click_save-2-3d6fd99c.png)

your title goes here

Insert or edit an image in a Pop-up template after creating it, using the **Edit** icon on the Dashboard. ![resize\_popup\_DB](/images/c6/resize_popup_DB-c6f44f18.png)

Drag Handlers are used to move or reposition the component within the Pop-up.
