Adding a link from an image in wordpress - wordpress

This seems to be more difficult than it should be.
All I would like to be able to do is add a link from an image on my wordpress site to an external website.
Using the normal media library tools this doesn't seem to be possible so I got the plugin WP Gallery Custom Links
However, even though I added the external link to the Gallery Link URL it still doesn't link.
Is there a more straightforward way to embed a link into an image?
Here is a screenshot of the image editing page:

If you are trying to make an Image clickable and bring you to an external site, click the image, click Edit, under Display settings select link to, custom url, and there you go.
Another way is, when you are adding an image to your site from your Media Library within Wordpress, there is an option "Link to" under Attachment Display Settings.

Related

Direct link to an image inside a gallery

I have to edit a wordpress site right now. One of the task is to give thumbnails a direct link to point the image directly in the gallery instead of the gallery page.
I can change the link in the thumbnails but I cannot find out what is the link which goes inside the gallery directly to a specific image. And of course keep the paging capabilities after that.
Depends on the gallery being used, in most cases you link to the gallery index.

Post or Page specific image gallery in Wordpress

Is there a way from which I can use any plugin and show Post or Page specific image gallery? The image gallery upload area should be displayed in Page when Creating or Editing the page below or above the text composer or should be at least in the page. And this gallery should not be hocked the default Image gallery of wordpress or at least should not show the images that's in default gallery.
Kindly let me know if anybody knows any plugin that does the above mentioned job.
You can do this simply by [gallery] shortcode. You can also set image ids like this: [gallery ids="729,732,731,720"]
Here is my answer: All my requirement got fulfilled by default "Media Library" tab. I just need to select the option "Uploaded to this page" from the dropdown. So, no need to use any plugin for the requirement I had.

Wordpress - Image lightbox with different image when clicked

For my wordpress site, I need some images arranged in a grid and when one is clicked a specific (different) image is displayed bigger. I thought that there maybe is a lightbox/gallery plugin, where one enters the link for the small and big picture, and I can just use the link to a different image instead of to the same one, but bigger. Does anyone know a plugin that works like that? Or any other way to make that work?
You can use "WP Gallery Custom Links" plugin to set different image link by using "custom URL" option.
Simply go to a post or page and create a new gallery. You will see the custom link meta fields for individual images in a gallery.

Wrong image url in media library wordpress

Here is the sitution:
I am using WordPress 4.6.1 for my website with Storefront theme from WooCommerce. I have images not appearing on any of the pages on my website, but they all appear in the Media Library. I checked to make sure the files are located in the wp-content/upload folder (it is with a permission of 755 and all images are 644). I checked to make sure were no plugin issues (there are none). The permalink struture is postname. I have the WooCommerce plugin for my site for products and services. The image URL is missing in the Media Library with the name of the image file and extension in black writing with the view URL as simple-page/name of image.
For example, the image payment.jpg. The correct URL of that image is http://www.gwbs.biz/wp-content/uploads/2016/10/payments.jpg but under the view link, the file reads http://www.gwbs.biz/sample-page/payments/. When you click on the view link, a page is displayed instead of the image.
I am not sure why it's behaving that way. As a result one of my images are displaying on the page. Just the slug name of the image at the location the image. Is there a solution of this problem?
Please check img src tag in sample-page/payments/ page. I think, It is not correct url.

Embedding links in WordPress 3.6

I am developing a theme for WordPress 3.6 and as far as I know embedded links, like if just place a link into the post for YouTube it should auto embed its self. that's not the case here - would any one know what would cause links from services like YouTube to not embed?
[embed][/embed] doesn't work either...
Make sure the YouTube link is not hyperlinked. If the URL is shown in
your theme’s link color (as the second line in the screenshot below),
then it is hyperlinked. Simply select the whole URL and click the
“Unlink” icon on your Visual Editor toolbar.
Once the URL is unlinked, you will see the link text in black. Make
sure to place the YouTube URL or shortcode on its own line. This
means there should be no character or whitespace before or after the
URL/shortcode.
http://en.support.wordpress.com/shortcodes/
However, beyond those issues you might want to look into. the API that WP uses to embed links from YouTube, Twitter, Flicker...
http://oembed.com/
oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.
Unlink the link if it's linked and use the shortcode :
[youtube=http://www.youtube.com/XXXX] and that will work.

Resources