How to remove native imgur auto embed (oEmbed)? Causing Lightbox issues.
-
Some time ago, WordPress added native imgur auto embedding for posts. And ever since, my Lightbox plugin has been malfunctioning.
When I click on imgur links from older posts, they would enlarge from Lightbox and stay on my site.
But on newer posts, clicking on imgur links open a new tab that links to imgur. And the Lightbox never enlarges the photo in the original tab.
I think I need to disable the native imgur auto embed. What’s the easiest way to go about it?
Thanks,
HahutzyP.S.:
Example of how I DONT want imgur links to be displayed:
http://www.autoatk.com/akalis-twin-disciplines-is-incorrectly-calculated/
http://www.autoatk.com/hearthstone-no-commons-card-pack/Example of how I DO want imgur links to be displayed:
http://www.autoatk.com/hearthstone-climbing-season-10-rank-5-hunter/
http://www.autoatk.com/hearthstone-season-10-rank-5-warlock-hunter/
-
Hi Hahutzy!
I think you just grabbed the wrong link from Imgur on your blog posts.
For instance, you are using the image found on http://imgur.com/LIxwGDn?tags and for your blog post, you selected the url from the line, Image Link (email & IM). You should have selected the Direct Link (email & IM) version, http://i.imgur.com/LIxwGDn.png, to prevent Imgur from adding extra code. Switch it up and I think you will be back in business.
I can assure you that is not the case; all the links that I included in the post when I wrote them are the Direct Links.
In fact, the 2nd link for the DONT examples used to work properly, until WordPress updated, and I clicked “Update” on the post without changing the content. The picture went from Lightbox-enabled to the imgur embed we see here.
I feel pretty confident that WordPress isn’t doing anything.
https://help.imgur.com/hc/en-us/articles/204766005-Image-Album-Embed
Edit this page, http://www.autoatk.com/akalis-twin-disciplines-is-incorrectly-calculated/ and replace what you have for that linked image with the following:
<p><a href="http://i.imgur.com/LIxwGDn.png" rel="lightbox-0"><img src="http://i.imgur.com/LIxwGDn.png" alt="" width="960" height="540" /></a></p>This is what I had in the post, in Text-editor mode (so no html code is hidden)
[...]View post on imgur.com
[...]Yes, it was and has always been just the URL, no html, no shortcodes.
And it used to work fine.While the html you posted does give the intended effect,
the purpose for me to ask this question here is to find a way to restore the functionality of only writing the link, and then have it show up as intended, instead of having the imgur embed.
The topic ‘How to remove native imgur auto embed (oEmbed)? Causing Lightbox issues.’ is closed to new replies.