Support » Plugin: Elementor Website Builder » Disable Global Options Upon Theme Activation

  • Resolved ProgressionStudios


    Is it possible to the Global Options upon theme activation instead of requiring users to do this manually (Disable Global Colors, Disable GLobal Fonts, and remove Default Generic Fonts)?

    My theme already has font and color controls (Most themes do). It would be great to turn these settings off upon theme activation as it is much more user friendly. Essentially same question as the last response in this thread:

    Ps. Great plugin, been really enjoying playing around with it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Yakir Sitbon


    You can update the options with your custom data. Like this:

    update_option( 'elementor_disable_color_schemes', 'yes' );
    update_option( 'elementor_disable_typography_schemes', 'yes' );

    @kingyes – update_options() would not be allowed in themes hosted at repo. Is there another way to achieve this? Perhaps add a removable action/filter hook instead?

    Plugin Author Yakir Sitbon


    Hmm.. good to know.

    Maybe you can use with any filter from get_option() function?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Global Options Upon Theme Activation’ is closed to new replies.