There is no way to insert links on a gallery caption?
-
Today I started using galleries, a feature I don’t knew that existed, for years. And there isn’t this feature on Tumblr, from which I migrated my blog.
I know I can create links on image captions. But when I try to add links on galleries captions, they are exhibited like plain text. There isn’t a way to do that, or I’m doing something wrong?
The blog I need help with is: (visible only to logged in users)
-
Hi there. You should be able to insert html links in image captions in a gallery (I just tested it and it works for me).
Did you insert only the http link or did you use the full html a-tag? You need to use the latter in the image caption for it to correctly render as a link:
<a href="link here starting with http">Caption text here</a> -
I was using the full HTML tag, including the “title” field.
I tried now this code and it appeared on the editor as normal text:
<a href="http://www.facebook.com">test</a> -
In the editor it shows the html, yes, but have you tried looking at it in preview mode? In the post preview and published post it should render as a clickable link. That’s how it worked when I tested it.
-
Absolutely one of the best features of images, not just Galleries.
I can see
<a href="http://www.facebook.com">test</a>in your test Gallery here on the image Comunicado à GloboIf all you want is for people to click on the link in the Caption you can set your Gallery to linkto: None, but for it to work you may have to turn off the Photo Carousel for your entire site in Media Settings.
More info about Galleries and links in image captions: https://agallerydemo.wordpress.com/2012/07/28/gallery-as-an-index-page/
-
I can see
Meaning the word test was linked, not that I can see the actual HTML in the caption.
-
In the post preview and published post it should render as a clickable link.
Hum, I tested on the preview mode and published post and it is correctly rendered. But so the visual editor has an error, it should exhibit correctly the rendered link.
-
-
So why gallery captions doesn’t render the links on the visual editor, while normal images render?
-
That’s just how it works with gallery captions.
I’ve tagged this for Staff input. I don’t recall that Gallery captions previously displayed the code rather than just the link text in the Visual Editor.
-
Can you give us a link to the gallery with the problem? I just tested now, and while the HTML will appear in plain text in the editor, it does render properly in the published post/page.
-
Hi @J- That’s actually the question here. The Gallery caption with a link is displaying the HTML in the Visual Editor. Regular image captions don’t.
-
Hm, it seems to be the same in the core WordPress software too. I’ll forward this on to the proper authorities.
Thanks!
-
-
Sure thing, and you can follow along at https://core.trac.wordpress.org/ticket/32616 too. :)
-
-
-
-
@macmanx-I see then that this has been defined as a TinyMCE issue, so what are the chances of this being patched in the near future (Future Release sounds soooo far awwaaaay and is friends with 1596 other tickets and counting)?
-
The ticket doesn’t have a specific targeted version, but if they do fix it for WordPress 4.3, that will be released August 18, and probably merged with WordPress.com before that: https://make.wordpress.org/core/version-4-3-project-schedule/
- The topic ‘There is no way to insert links on a gallery caption?’ is closed to new replies.