Inserting a link in a photo
-
I see this error in the console. The blogspot site is not allowing you to open an image hosted there on your site.
XMLHttpRequest cannot load http://passionforthepast.blogspot.com/2013/07/faces-of-history-original-photographs.html?random=1464562795659. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.bilfer49.com' is therefore not allowed access.It’s called hot-link blocking.
That is a little beyond my ken. Is that a setting in WP or my host. BTW it also happens if I use any other image or url.
what that error is saying is that blogspot won’t let you link to that image from your site. It’s not a WordPress problem.
OK. Now I understand what you are saying. But I just attempted to use a photo I took to link to one of my pages and I get an error. WP attempts to open a lightbox window. The console shows “Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/”.
The code inserted is [caption id="attachment_1901" align="alignleft" width="4320"]<img class=”wp-image-1901 size-full” src=”http://www.bilfer49.com/wordpress/wp-content/uploads/Ambulance897.jpg” alt=”Ambulance 897″ width=”4320″ height=”2432″ /> My ride[/caption]
Is there an error in what WP inserted?What lightbox plugin are you using?
I am not using a plug-in. The code that WP inserted did not copy correctly. It left the link out.
[caption id="attachment_1901" align="alignleft" width="4320"]<a href="http://www.bilfer49.com/gallery"><img class="wp-image-1901 size-full" src="http://www.bilfer49.com/wordpress/wp-content/uploads/Ambulance897.jpg" alt="Ambulance 897" width="4320" height="2432" /></a> My ride[/caption]a lightbox is not default WordPress behavior, so you must be using a plugin or the lightbox is built into your theme.
It appears you have one called “photo-gallery”, perhaps this one:
https://wordpress.org/plugins/photo-gallery/Is it up to date? The current version is 1.2.105
Yes you are correct. i use photo gallery and I guess their lightbox.
And before I forget. Thank you for your help. It’s Memorial day. Go to a picnic or something!!Disable the plugin. If the problem goes away, then post something here:
https://wordpress.org/support/plugin/photo-gallery
We’ve got a couple of nice bone-in ribeyes to put on the grill later today. 🙂
I actually had 2 gallery plug ins. NextGen gallery and photo gallery. I had used Nextgen for quite a while until I found that Photo Gallery better suited my needs. i never converted all my NextGen galleries so I left that active. Disabling Photo gallery did nothing but disabling NextGen fixed it.
Now I have to convert all my galleries.
Go enjoy your ribeyes and thanks so much!
The topic ‘Inserting a link in a photo’ is closed to new replies.