I'm trying to add a new TEXTAREA field into elementor pro gallery widget #25514
serxhio27
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe..
when the gallery is set to type = multiple, it adds a repeater gallery which contains (title, images) after the title i want to add the new TEXTAREA (description)
Describe the solution you'd like.
i came up with this code
add_action('elementor/element/before_section_end', function ($section, $section_id, $args) {
if ($section->get_name() == 'gallery') {
// we are at the end of the "section_image" area of the "image-box"
$section->start_injection([
'at' => 'before',
'of' => 'multiple_gallery',
]);
$section->add_control(
'my_custom_control',
[
'label' => 'My Custom Description',
'type' => Elementor\Controls_Manager::TEXTAREA,
'prefix_class' => 'my-image-box-style-',
'label_block' => true,
]
);
}, 10, 3);
but this code adds the description field here

instead i would like the field to be inside the gallery repeater fields, just below the title

Describe alternatives you've considered.
No response
Additional context
No response
Agreement
All reactions