This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // This example will add a custom "select" drop down & "switcher" to the "testimonial" section | |
| // and add custom "color" to the "testimonial style" section | |
| add_action('elementor/element/before_section_end', 'add_control_in_existing_widget', 10, 3 ); | |
| function add_control_in_existing_widget( $section, $section_id, $args ) { | |
| if( $section->get_name() == 'testimonial' && $section_id == 'section_testimonial' ){ | |
| // we are at the end of the "section_testimonial" area of the "testimonial" | |
| $section->add_control( | |
| 'testimonial_name_title_pos' , | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Necessary function, which can be used in making of theme | |
| * for client or ThemeForest or helper plugin for page builder. | |
| */ | |
| /** | |
| * Those two functions are for set and get attribute for html tag. | |
| * Example:- for set attribute |
NewerOlder