Created
March 26, 2018 09:27
-
-
Save lots0logs/40fccd15d6e3e7b5be4638dabe56d8b0 to your computer and use it in GitHub Desktop.
Custom CSS Fields Configuration Example
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 | |
| class SIMP_SimpleHeader extends ET_Builder_Module { | |
| // ...Rest of implementation | |
| public function get_custom_css_fields_config() { | |
| return array( | |
| 'content' => array( | |
| 'label' => esc_html__( 'Content', 'simp-simple' ), | |
| 'selector' => '%%order_class%% p', | |
| ), | |
| 'heading' => array( | |
| 'label' => esc_html__( 'Heading', 'simp-simple' ), | |
| 'selector' => '%%order_class%% h1', | |
| ), | |
| ); | |
| } | |
| // Rest of implementation... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment