How can I use external images from Cloudinary in my Webflow project and ensure that the URL links work properly when I export the code?

Published on
September 22, 2023

To use external images from Cloudinary in your Webflow project and ensure that the URL links work properly when you export the code, you can follow these steps:

  1. Upload the images to Cloudinary: Before using external images in your Webflow project, you need to upload the images to Cloudinary. Cloudinary is a cloud-based image and video management platform that offers various features such as transformations, optimizations, and delivery.

  2. Get the image URL: Once the images are uploaded to Cloudinary, you can obtain the image URL. Cloudinary provides a simple API that allows you to retrieve the URL of an image. You can either use the Cloudinary Console or the Cloudinary API to get the URL. Make sure to use the HTTPS protocol for secure delivery.

  3. Insert an image element in Webflow: In your Webflow project, go to the page where you want to insert the external image. Drag and drop an image element from the Elements panel onto your page. You can position and style the image element as needed.

  4. Set the image source: In the Settings panel on the right-hand side, find the "Image" field and set the source attribute to the Cloudinary image URL. You can either paste the URL directly into the field or use the dynamic data binding feature to pull the URL from a CMS collection or other data source.

  5. Test the image: Preview your website in the Webflow Designer or publish it to a staging URL to ensure that the external image is displaying correctly. Click on the image to make sure that the link is working properly and that it opens the image in a new tab or window.

  6. Export the Webflow code: Once you are satisfied with the image placement and functionality in the Webflow Designer, you can export the code for hosting on your own server or on a third-party hosting provider. To export the code, click on the "Export Code" button in the Webflow Designer and follow the instructions. The exported code will contain the necessary references to the external image URLs, ensuring that they work properly when the website is viewed outside of Webflow.

By following these steps, you can use external images from Cloudinary in your Webflow project and ensure that the URL links work properly when you export the code.

Additional questions:

  1. How can I upload images to Cloudinary?
  2. What is the Cloudinary API and how can I use it?
  3. Can I use Cloudinary with other website builders or content management systems?