Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dantetesta/3e388a579b19736b56abe7ed5b5b8a28 to your computer and use it in GitHub Desktop.
Save dantetesta/3e388a579b19736b56abe7ed5b5b8a28 to your computer and use it in GitHub Desktop.
DYNAMIC TAGS NOW ACTIVE!
I solved the issue of displaying the dynamic tag in the image of the Elementor Pro component using only one directive within the plugin code
"dynamic" => ["active" => true],
Simply access the file [garden-gnome-package/include/elementor_widget.php] And add this snippet: "dynamic" => ["active" => true],
inside the block example:
$this->add_control(
'image',
[
'label' => __( 'Choose Garden Gnome Package', 'ggpkg' ),
'type' => Controls_Manager::MEDIA,
'default' => [
'url' => Utils::get_placeholder_image_src(),
],
"dynamic" => ["active" => true],
]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment