Typically when you upload an image on Google Drive and right-click to activate it as a sharable link, the link looks like the format below:
https://drive.google.com/file/d/[image_id]/view?usp=sharing

This sort of link is unable to point directly to the image in your Google Drive.

If you wish to load an image on Google Drive and use it as an image link, here is the steps to unpack the protected link.

Step 1: After getting the sharable link of the file

Example:
https://drive.google.com/file/d/1md5mZKxGXyi0EB84H4HSRn5b7-Km1uxO/view?usp=share_link

Step 2: Use the link format below to create the image link:
https://drive.google.com/uc?export=view&id=[image_id]

Based on my Example, my [image_id] is 1md5mZKxGXyi0EB84H4HSRn5b7-Km1uxO

Step 3: I use my actual image_id to replace the text string [image_id].
My final image link will read like this.

https://drive.google.com/uc?export=view&id=1md5mZKxGXyi0EB84H4HSRn5b7-Km1uxO

Step 4: I can then use this link to link images to my WordPress elements or embed within my HTML code.

For instance, I will insert the image link from Step 3 as an URL into WordPress’s Image element.

Leading to my image loading within my WordPress post as per below.

Leave a Reply

Your email address will not be published. Required fields are marked *