AppsFruit Elementor Embed allows you to embed Elementor pages, templates, and global sections anywhere on your site using simple shortcodes or Gutenberg blocks with advanced conditional display options.
[afe_embed id=123]
Replace 123 with your template ID.
Device-Specific Display:
[afe_embed id=123 device=”mobile”]
[afe_embed id=123 device=”desktop”]
Role-Based Display:
[afe_embed id=123 role=”administrator”]
[afe_embed id=123 role=”editor|subscriber”]
Post Type Specific:
[afe_embed id=123 post_type=”page”]
[afe_embed id=123 post_type=”post|product”]
Combined Conditions:
[afe_embed id=123 device=”mobile” role=”subscriber” post_type=”post”]
The plugin provides several hooks and filters for developers:
afe_shortcode_atts – Modify shortcode attributesafe_should_display – Add custom display conditionsafe_should_render_template – Prevent template renderingafe_template_content – Modify template outputafe_before_render_template – Action before renderingafe_after_render_template – Action after rendering