Title: Advanced Section options
Last modified: April 25, 2022

---

# Advanced Section options

 *  Resolved [stas0238](https://wordpress.org/support/users/stas0238/)
 * (@stas0238)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/)
 * 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 4 years, 1 month ago by [stas0238](https://wordpress.org/support/users/stas0238/).
    -  This topic was modified 4 years, 1 month ago by [stas0238](https://wordpress.org/support/users/stas0238/).

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

 *  [Elementor Team](https://wordpress.org/support/users/lianakap/)
 * (@lianakap)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/#post-15594519)
 * Hi,
 * Unfortunately, providing custom code falls outside of the scope of our support.
 *  Thread Starter [stas0238](https://wordpress.org/support/users/stas0238/)
 * (@stas0238)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/#post-15594748)
 * [@lianakap](https://wordpress.org/support/users/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](https://wordpress.org/support/users/stas0238/)
 *  [Elementor Team](https://wordpress.org/support/users/lianakap/)
 * (@lianakap)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/#post-15607885)
 * 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](https://wordpress.org/support/users/stas0238/)
 * (@stas0238)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/#post-15607983)
 * [@lianakap](https://wordpress.org/support/users/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](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 ?
 *  [Elementor Team](https://wordpress.org/support/users/lianakap/)
 * (@lianakap)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/#post-15609207)
 * Hi [@stas0238](https://wordpress.org/support/users/stas0238/) ,
 * Our developers have answered you on Github.
 * I hope this helps 🙂
 *  Thread Starter [stas0238](https://wordpress.org/support/users/stas0238/)
 * (@stas0238)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/#post-15609291)
 * Hello [@lianakap](https://wordpress.org/support/users/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](https://wordpress.org/support/users/stas0238/)
 *  [Elementor Team](https://wordpress.org/support/users/lianakap/)
 * (@lianakap)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/#post-15610872)
 * Hi [@stas0238](https://wordpress.org/support/users/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.
    -  This reply was modified 4 years, 1 month ago by [Elementor Team](https://wordpress.org/support/users/lianakap/).
 *  Thread Starter [stas0238](https://wordpress.org/support/users/stas0238/)
 * (@stas0238)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/#post-15610912)
 * Hello [@lianakap](https://wordpress.org/support/users/lianakap/)
 * Check these ones below:
    1/ [https://wordpress.org/support/topic/get_style_depends-on-edit-mode-only/](https://wordpress.org/support/topic/get_style_depends-on-edit-mode-only/)
   2/ [https://wordpress.org/support/topic/get_script_depends-based-on-option/](https://wordpress.org/support/topic/get_script_depends-based-on-option/)
   3/ [https://github.com/elementor/elementor/issues/16881](https://github.com/elementor/elementor/issues/16881)(
   github)
 * Regards, [@stas0238](https://wordpress.org/support/users/stas0238/)
 *  [Elementor Team](https://wordpress.org/support/users/lianakap/)
 * (@lianakap)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/#post-15610941)
 * 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.

 * ![](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/)

## Tags

 * [advanced](https://wordpress.org/support/topic-tag/advanced/)
 * [development](https://wordpress.org/support/topic-tag/development/)
 * [extra](https://wordpress.org/support/topic-tag/extra/)

 * 9 replies
 * 2 participants
 * Last reply from: [Elementor Team](https://wordpress.org/support/users/lianakap/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/advanced-section-options/#post-15610941)
 * Status: resolved