Deprecated ‘elementor_container_width’ option
-
Before Elementor version 3.0 theme developers could use the following function to change the elementor_container_width, for demo content import for example.
update_option( 'elementor_container_width', '1200' );
Now this is deprecated (reference) in 3.0 how can we update the container width setting?
This setting is now removed from the option page and placed in the Site Settings panel and the value can be retrieved via:
\Elementor\Plugin::$instance->kits_manager->get_current_settings( 'container_width' );
But is there a way to update this just like it was possible before version 3.0?
Also the “elementor_viewport_lg” and “elementor_viewport_md” settings doesn’t seem to change anymore when using the update_option function, while these two are not deprecated according to the developer article.
Appreciate any help on this.
- The topic ‘Deprecated ‘elementor_container_width’ option’ is closed to new replies.