# Can you conditionally wrap a custom element's slot in a parent element?

**URL:** <https://discourse.aurelia.io/t/can-you-conditionally-wrap-a-custom-elements-slot-in-a-parent-element/2797>\
**Category:** Help Requests\
**Created:** [August 1, 2019, 4:43pm UTC](https://discourse.aurelia.io/t/can-you-conditionally-wrap-a-custom-elements-slot-in-a-parent-element/2797 "2019-08-01T16:43:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![arnederuwe](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/arnederuwe/32/737_2.png) [@arnederuwe](https://discourse.aurelia.io/u/arnederuwe)\
**Post date:** [August 2, 2019, 7:02am UTC](https://discourse.aurelia.io/t/can-you-conditionally-wrap-a-custom-elements-slot-in-a-parent-element/2797/3 "2019-08-02T07:02:57Z")

</div>

You could do this with `processContent()`  
@bigopon has a good writeup [here](https://discourse.aurelia.io/t/better-know-a-framework-18-what-processcontent-is-and-what-it-is-used-for/1785)  
If you need help, set up your non-working example on codesandbox, post it here, and I will give it a shot this weekend

---

_[View the full topic](https://discourse.aurelia.io/t/can-you-conditionally-wrap-a-custom-elements-slot-in-a-parent-element/2797)._
