How Do I Hide an Image URL in WordPress?

How to Hide an Image URL in WordPress

If you want to hide the URL for an image in your WordPress blog, you can use a few simple techniques.

1. Use the Element

The simplest way to hide an image URL in WordPress is to use the element. To do this, you simply add the src attribute to the tag and specify the URL of the image you want to hide.

For example, if you want to hide the URL for an image called “myimage.jpg” in your blog, you would use the following tag:

This will hide the URL for the image from the blog content. However, the image will still appear in the blog’s gallery.

2. Use the Element

If you want to hide the URL for an image but still allow people to view the image using the blog’s gallery, you can use the element. To do this, you add the alt attribute to the tag and specify a text description of the image.

My image

This will hide the URL for the image from the blog content, but the image will still appear in the blog’s gallery with the text “My image” as the alt text.

3. Use the Element

If you want to hide the URL for an image but still allow people to view the image using the blog’s gallery, you can use the element. To do this, you add the srcset attribute to the tag and specify a list of URLs that will be used to create the image.

.

This will hide the URL for the image from the blog content, but the image will still appear in the blog’s gallery with the thumbnails sized 320×320, 640×640, and 1024×1024, respectively.

4. Use the

If you want to hide the URL for an image but still allow people to view the image using the blog’s gallery, you can use the

This will hide the URL for the image from the blog content, but the image will still appear in the blog’s gallery with the text “Not visible” as the alt text.