-
Folks, I’m stumped and would appreciate some help.
I recently installed the Vlogger theme and installed it in a new WordPress site at http://GrandAdventure.tv. The problem I’m having is when I insert media images from my media library into posts, despite setting the link option in my media library to the media file, the link isn’t visible if it has a caption.
I offer as an example the page http://grandadventure.tv/2017/12/28/coming-up-kitchen-table-trips/. For the first inline image in the post, WordPress generates the following when inserting the image:
[caption id="attachment_2461" align="alignright" width="350"]<a href="http://grandadventure.tv/wp-content/uploads/2017/12/20170712_160907-1.jpg"><img class="size-medium wp-image-2461" src="http://grandadventure.tv/wp-content/uploads/2017/12/20170712_160907-1-350x155.jpg" alt="Our campsite along the North Fork Payette River in Idaho featured natural hot spring pools with a view." width="350" height="155"></a> Our campsite along the North Fork Payette River in Idaho featured natural hot spring pools with a view.[/caption]
However, you’ll notice that the image is not linked. Ditto for the third image, captioned from Silverton, Colo. The only image on that page that properly includes a link is the second one, the Kitchen Table Trips logo that doesn’t have a caption. If I add a caption for the image, the link in that image disappears.
If I code the first image instead like this, the way it is for a non-captioned logo image:
<a href="http://grandadventure.tv/wp-content/uploads/2017/12/20170712_160907-1.jpg"><img class="alignright size-medium wp-image-2461" src="http://grandadventure.tv/wp-content/uploads/2017/12/20170712_160907-1.jpg" alt="" width="350"></a>
…only the top 5-10% of the image is linked; the rest is not. Bizarre.
What I want to do is display images conventionally with captions like in the first and third images, but with a link to the original full-size media file. It’s simply not working.
Hello Grand Adventure,
Andrea here from Themes2go Customer Support and I will assist you with your request.
The issue is very strange because the theme did not overwrite the native WordPress functions for images or media in general.I’ve just tried to add an image with caption inside a post on a fresh Vlogger installation and it works fine so the problem could be somewhere else, for example using third-party plugins.
One question: did you set the “link to” parameter to “Media file”? Check the image below:I look forward to hearing you.
AndreaThank you, Andrea. Yes indeed it’s set to media file. I’ve used another WP installation for another website for many years, without this issue. This is a new install, so the only third-party plugins I’ve installed are “Ad Inserter” and “NextGEN Gallery,” the latter is also installed on the other site that I’m using without this issue.
Sorry, and WordPress Jetpack, too, but that is also installed on my other site without issue. I’m stumped.
Hi,
this is the code from an image with caption added on one of our demo online and it works fine:[caption id="attachment_1232" align="alignnone" width="1170"]<a href="http://themes2go.xyz/demos/vlogger/vlogger-food/wp-content/uploads/2017/07/DEMO-IMG.jpg"><img class="size-large wp-image-1232" src="http://themes2go.xyz/demos/vlogger/vlogger-food/wp-content/uploads/2017/07/DEMO-IMG-1170x658.jpg" alt="This is the alt text" width="1170" height="658" /></a> This is the caption[/caption]
I compared this to the one you posted and the syntax is the same.
Before proceeding to the second level support, can you please disable all the plugins not bundled with the theme and check if the issue persists?Thanks,
AndreaApologies for my delayed reply, I’ve been tied up with some urgent stuff the past couple of weeks.
I’ve now gone and disabled all plug-ins not installed with the theme and created some test posts with media inserted. Even with those few plug-ins disabled the problem persists. The behavior is very bizarre — occasionally it’ll work and the image will be linked, but most times it won’t if there’s a caption for the image.
I’m stumped, but I’d really, really like to solve this.
Hello,
we need to test your website and we need some information.
Please follow the steps on this page so one of our developers can check the issue.https://www.themes2go.xyz/helpdesk/email-support/
Regards,
Andrea
The topic ‘Images in posts with captions won't link’ is closed to new replies.