# Unable to select image within textbox to place between paragraphs

**URL:** <https://forum.getkirby.com/t/unable-to-select-image-within-textbox-to-place-between-paragraphs/16918>\
**Category:** Questions\
**Tags:** v3\
**Created:** [January 19, 2020, 6:58am UTC](https://forum.getkirby.com/t/unable-to-select-image-within-textbox-to-place-between-paragraphs/16918 "2020-01-19T06:58:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simoncarriere](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@simoncarriere](https://forum.getkirby.com/u/simoncarriere)\
**Post date:** [January 19, 2020, 6:58am UTC](https://forum.getkirby.com/t/unable-to-select-image-within-textbox-to-place-between-paragraphs/16918/1 "2020-01-19T06:58:57Z")

</div>

Hi all,

Trying to select a file/image within a text-box in the panel to place between 2 paragraphs. The image tag is staying in text : (image: 1\_a.jpg) on the site and isn’t compiling to the image. I’ve also tried adding a img tag in the textbox and manually selecting the source of the image as “[(image: …) | Kirby CMS](https://getkirby.com/docs/reference/text/kirbytags/image)” but also unable to display.

Would really appreciate some guidance.

Simon

---

<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:** [January 19, 2020, 8:01am UTC](https://forum.getkirby.com/t/unable-to-select-image-within-textbox-to-place-between-paragraphs/16918/2 "2020-01-19T08:01:33Z")

</div>

Hi, welcome to the forum.

If Markdown and KirbyText don’t render, you most probably don’t use the `kirbytext/kt()`methods in your template, or do you?

```auto
<?= $page->text()->kirbytext() ?>

```

---

<div class="post-metadata">

**Author:** ![simoncarriere](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@simoncarriere](https://forum.getkirby.com/u/simoncarriere)\
**Post date:** [January 19, 2020, 8:18am UTC](https://forum.getkirby.com/t/unable-to-select-image-within-textbox-to-place-between-paragraphs/16918/3 "2020-01-19T08:18:42Z")

</div>

Hi & thanks for the prompt response!

Heres an example of my project template markdown. I am using `prj-section-img:first-child img` to stick the first image while the `prj-section-text` div scrolls on the side. I was hoping to add additional images within `<p><?= $section->text() ?></p>` selected from the textbox file option.

```auto
<?php foreach ($page->children() as $section): ?>
  <div class="prj-section">

    <?php foreach ($section->images() as $image): ?>
      <div class="prj-section-img">
        <?= $image ?>
      </div>
    <?php endforeach ?>

    <div class="prj-section-text">
      <h1><?= $section->heading() ?></h1>
      <p><?= $section->text() ?></p>
    </div>
  </div>
<?php endforeach ?>

```

---

<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:** [January 19, 2020, 8:23am UTC](https://forum.getkirby.com/t/unable-to-select-image-within-textbox-to-place-between-paragraphs/16918/4 "2020-01-19T08:23:48Z")

</div>

If you include images in your text field with the image tag `(image: someimge.jpg)` then you have to render your text field with

```auto
<?= $section->text()->kirbytext() ?>

```

without wrapping it in `<p>` tags, instead of

```auto
  <p><?= $section->text() ?></p>

```

(Is there a reason why you use those `<br>` tags in your text field?)

On a side note: Correct me if I’m wrong, but your `heading` field seems a bit superflous, because if seems to only repeat what is already in the title?

---

<div class="post-metadata">

**Author:** ![simoncarriere](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@simoncarriere](https://forum.getkirby.com/u/simoncarriere)\
**Post date:** [January 19, 2020, 8:41am UTC](https://forum.getkirby.com/t/unable-to-select-image-within-textbox-to-place-between-paragraphs/16918/5 "2020-01-19T08:41:06Z")

</div>

Perfect ! Thanks alot.
