Title: Element custom render
Last modified: March 6, 2025

---

# Element custom render

 *  Resolved [christian70](https://wordpress.org/support/users/christian70/)
 * (@christian70)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/element-custom-render/)
 * I’m having a container with a Youtube video background. Everything works fine,
   but I need to remove the video at certain conditions (i.e. cookies are not accepted).
   I tried to modify the frontend render of the block (with something like $settings[‘
   background_video_link’]) in order to get the video url setting empty if condition
   is not accepted, but I can’t find any way to get and modify that value. Or to
   render a fully customized version of the block.
 * Is there any way to do that? Any suggestion?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Milos](https://wordpress.org/support/users/miloss84/)
 * (@miloss84)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/element-custom-render/#post-18345955)
 * Hello,
 * Thank you for contacting US
 * I’m afraid that there is no way to do it with our current Elementor features.
 * However, I have added this idea to our internal list as a Feature Request, so
   this feature might appear in one of the future Elementor updates. Thank you for
   your feedback!
 * There might be third-party plugins available that have such a feature so you 
   can join our[ ](https://forum.elementor.com/)[Elementor Facebook Group](https://www.facebook.com/groups/Elementors/)​
   and check with our users there for such a plugin recommendation.
 * Finally, I would like to apologize for not being able to provide this particular
   solution at the moment. I hope for your understanding.
 * If you have any questions, don’t hesitate to contact us again.
 * I wish you all the best, and have a great day!
 *  Thread Starter [christian70](https://wordpress.org/support/users/christian70/)
 * (@christian70)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/element-custom-render/#post-18346219)
 * Thank you for your kind reply,
 * I do understand but I hoped there was a solution based on frontend rendering (
   [https://developers.elementor.com/docs/hooks/render-frontend-elements/](https://developers.elementor.com/docs/hooks/render-frontend-elements/)).
 * I will try to filter content or implement a GDPR compliance plugin and see if
   Youtube iframes can be blocked before playing and installing tracking cookies,
   because it is illegal utterly without previous visitors’ consent.
 *  Plugin Support [Rica](https://wordpress.org/support/users/ricav/)
 * (@ricav)
 * [12 months ago](https://wordpress.org/support/topic/element-custom-render/#post-18518896)
 * Hi [@christian70](https://wordpress.org/support/users/christian70/),
 * While Elementor doesn’t currently include a native option to block iframes prior
   to user consent, the most effective solution would be to use a dedicated GDPR
   or cookie consent plugin. These tools are designed specifically for compliance
   and often include features to block third-party scripts, like YouTube embeds,
   until the visitor has actively given permission.
 * Regarding frontend rendering hooks, they’re definitely useful for customizing
   how elements appear on the page. However, they don’t extend to managing the behavior
   of external scripts before they load, which is why your approach of filtering
   or deferring the iframe until consent is received is both practical and in line
   with GDPR requirements.
 * As this thread has been inactive for over two months, we’ll go ahead and close
   it now. If you have any updates or need further assistance in the future, please
   don’t hesitate to open a new thread—we’re always here to help.
 * Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Element custom render’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Rica](https://wordpress.org/support/users/ricav/)
 * Last activity: [12 months ago](https://wordpress.org/support/topic/element-custom-render/#post-18518896)
 * Status: resolved