# Fancybox 3 in Kirby Text Field Hook?

**URL:** https://forum.getkirby.com/t/fancybox-3-in-kirby-text-field-hook/17730
**Category:** Questions
**Tags:** v3
**Created:** [March 30, 2020, 9:34am UTC](https://forum.getkirby.com/t/fancybox-3-in-kirby-text-field-hook/17730 "2020-03-30T09:34:06Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)
#### Post date: [April 1, 2020, 5:48pm UTC](https://forum.getkirby.com/t/fancybox-3-in-kirby-text-field-hook/17730/11 "2020-04-01T17:48:52Z")

</div>

No, the rendered result is not `<img alt="" src="<?php $site->image_02 ?>">` but `<img alt="" src="https://mysite.de/media/pages/blog/slug/61586985-1585327526/01_grosse-bilder01.png">`. So all you need is to get the complete rendered img tag and the value of the `src` attribute, and wrap that within your link.

* * *

I think I would prefer a custom image tag instead that renders the result differently depending on template though, rather than the hook. Would prevent having to do the regex voodoo.

---

_[View the full topic](https://forum.getkirby.com/t/fancybox-3-in-kirby-text-field-hook/17730)._
