By using Elementorforum.com’s services you agree to our Cookies Use and Data Transfer outside the EU.
We and our partners operate globally and use cookies, including for analytics, personalisation, ads and Newsletters.

  • Join the Best Unofficial Elementor Support forum

    Provide or get advice on everything Elementor and Wordpress, ask questions, gain confirmation or just become apart of a friendly, like minded community who love Wordpress and Elementor


    Join us!
elementor official

Question Skin for Custom Element

advokatb

advokatb

New Member
Hi.

I have Controls_Manager :: SELECT, which "switches" block design presets.
It looks like:


Code:
    'options' => [
        '1' => __( 'Style 1', 'plugin' ),'2' => __( 'Style 2', 'plugin' ),'3' => __( 'Style 3', 'plugin' ),'6' => __( 'Style 6', 'plugin' ),],

The value is passed in $ params ['style']

include( plugin_dir_path( __FILE__ ) . '../templates/content-style-'.$params['style'].'.php' );

and thus switching presets.

For example, for Style 1 we set the blue background, then switch to Style 2.
The background of the block remains blue. How to reset it to default when switching "presets"?

Thinking it can be done with Skin_Base but I can't find any examples that can help to implement this.
 
elementor official

Latest posts

Other Elementor Resources

elementor official
elementor official
Top