Support » Plugin: Elementor Website Builder » Advanced Section options

  • Resolved stas0238

    (@stas0238)


    Hello,
    I have added extra control sections with options in Advanced Tab using elementor/element/common/_section_style/before_section_start action to make it added globally for all widgets.
    But I need to update some options’ values (of switcher control type) for just few specific widgets (‘image-carousel’, ‘testimonial’, etc)
    How can I do it with normal code practice ?
    My tries:
    1/

    add_action('elementor/element/image-carousel/_section_style/before_section_start', function($element, $args) {
    $element->update_control( 'my_custom_option', [
    			'default' => 'yes',
    		] );
    }, 10, 2);

    2/

    add_action('elementor/element/after_section_start', function( $element, $section_id, $args ) {
    if ( 'image-carousel' === $element->get_name() ) {
      $element->update_control( 'my_custom_option', [
      			'default' => 'yes',
    		] );
      }, 10, 3)
    }

    The result I would like to have is next:
    1/ Have my extra sections with options for all widgets
    2/ For specific widgets default values of few controls should be changed. ->

    Globally

    $element->add_control(
            'my_custom_option',
            [
                'label' => __('Label', 'xstore'),
                'type' => \Elementor\Controls_Manager::SWITCHER,
            ]
        );

    But for some widgets it should be kinda next view

    $element->add_control(
            'my_custom_option',
            [
                'label' => __('Label', 'xstore'),
                'type' => \Elementor\Controls_Manager::SWITCHER,
                'default' => 'yes'
            ]
        );
    • This topic was modified 9 months, 1 week ago by stas0238.
    • This topic was modified 9 months, 1 week ago by stas0238.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Elementor Team

    (@lianakap)

    Hi,

    Unfortunately, providing custom code falls outside of the scope of our support.

    Thread Starter stas0238

    (@stas0238)

    @lianakap
    Ok, may I ask the same question on your github ? Will you be able to answer me there in the way I expected ?
    I really need to know how to make it work for some widgets but according to the rules I cannot ask any ‘dev’s help question’ here ?
    As workaround you may provide me screenshots of working code without typing it right here 🙂
    I will take care about recopying it correctly.
    Regards, @stas0238

    Plugin Support Elementor Team

    (@lianakap)

    Hi,

    You may try to ask this on Github 🙂
    Unfortunately, I’m unable to assist you with issues related to custom code.

    Thread Starter stas0238

    (@stas0238)

    @lianakap
    If you took a look at least one per month then I didn’t need to wait years for your answers.
    You may check my latest answer here -> https://github.com/elementor/elementor/issues/13078
    Tell me please, where can I get normal answer for my questions ?
    My questions are (2 years, 5 months, 7 months – without any normal solutions)
    Is it too hard to give me answers for questions I asked ?

    Plugin Support Elementor Team

    (@lianakap)

    Hi @stas0238 ,

    Our developers have answered you on Github.

    I hope this helps 🙂

    Thread Starter stas0238

    (@stas0238)

    Hello @lianakap,
    Much better to have one answer after only 2 years waiting 🙂
    Everyone became smarter and stronger and one of those decided to give the answer finally. You should know that questions for dev team like the ones I asked are much better to get answered while “asking person” is in process on any project thnn after many months after project was already finished.
    P.S. I hope someone else will give solutions on my other questions too in less than 2 years and the one I wrote here as well.
    Regards, @stas0238

    Plugin Support Elementor Team

    (@lianakap)

    Hi @stas0238 ,

    thank you for the feedback I will forward it.
    In addition, thank you for your understanding and for your patience.

    Regarding your other question, I wasn’t able to trace it.
    Please open a new topic, this will allow us to give you more accurate support.

    Have a great day,
    Best Regards.

    Thread Starter stas0238

    (@stas0238)

    Plugin Support Elementor Team

    (@lianakap)

    Hi,

    Please open new topics regarding these issues.
    So we could follow up on your replies on daily basis.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Advanced Section options’ is closed to new replies.