Title: Deprecated &#8216;elementor_container_width&#8217; option
Last modified: August 27, 2020

---

# Deprecated ‘elementor_container_width’ option

 *  [qreativethemes](https://wordpress.org/support/users/qreativethemes/)
 * (@qreativethemes)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/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](https://developers.elementor.com/v3-0-planned-deprecations/))
   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.
    -  This topic was modified 5 years, 9 months ago by [qreativethemes](https://wordpress.org/support/users/qreativethemes/).
    -  This topic was modified 5 years, 9 months ago by [qreativethemes](https://wordpress.org/support/users/qreativethemes/).

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

 *  [codexhemes](https://wordpress.org/support/users/codexhemes/)
 * (@codexhemes)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/deprecated-elementor_container_width-option/#post-13370287)
 * Hi guys, we have the same issue and can confirm, that update_option doesn’t work
   anymore. How can we update Elementor’s default settings beginning from 3.x version?
 *  Plugin Author [ArielK](https://wordpress.org/support/users/arielk-1/)
 * (@arielk-1)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/deprecated-elementor_container_width-option/#post-13371906)
 * Hi,
 * We have made changes in this area and how the data is stored.
 * I encourage you to follow our developer blog and our GitHub repository to be 
   aware of such changes.
 * If we can add something that will allow you to make such a change in Elementor,
   please open an issue in GitHub.

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

The topic ‘Deprecated ‘elementor_container_width’ option’ 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

 * [update_option](https://wordpress.org/support/topic-tag/update_option/)

 * 2 replies
 * 3 participants
 * Last reply from: [ArielK](https://wordpress.org/support/users/arielk-1/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/deprecated-elementor_container_width-option/#post-13371906)
 * Status: not resolved