• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    (@arielk-1)

    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.