elementor / elementor/elementor
📚 🚀 Feature Request: Update The New Global Style Settings on Theme Activation
- Dominant language
- PHP
- Stars
- 7.1k
- Forks
- 1.6k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 193
Description
## Prerequisites
- [x] I have searched for similar feature requests in both open and closed tickets and cannot find a duplicate.
- [x] The feature is still missing in the latest stable version of Elementor.
**What problem is your feature request going to solve? Please describe.**
As a WordPress theme developer, I used to update some of the settings under **Elementor > Settings > Style** tab on theme activation. I do this by attaching a function to the `after_setup_theme` action that updates the following options...
```
update_option( 'elementor_stretched_section_container', '#site' );
update_option( 'elementor_global_image_lightbox', '' );
update_option( 'elementor_disable_color_schemes', 'yes' );
update_option( 'elementor_disable_typography_schemes', 'yes' );
update_option( 'elementor_container_width', '1000' );
update_option( 'elementor_viewport_lg', '1100' );
update_option( 'elementor_viewport_md', '783' );
update_option( 'elementor_space_between_widgets', '0' );
```
Now after moving these settings to the Elementor editor (Hamburger Menu > Global Settings > Style) there's no way as I know to update these options on the theme activation, it will be very helpful if there's a way to so.
I'm not sure if there's already a way to do this, but I can't find anything related in the documentation.
**Describe the solution you'd like**
To have a way to update the settings under the Elementor editor (Hamburger Menu > Global Settings > Style) on theme activation `after_setup_theme` action.
By the way, I have posted this issue a month ago on the plugin support page but never got an answer.
https://wordpress.org/support/topic/set-stretched-section-container-on-theme-activation/
Thanks in advance.
Contributor guide
Assessment
This issue has not been assessed yet.