Skip to content

Instantly share code, notes, and snippets.

@lots0logs
Created March 26, 2018 09:27
Show Gist options
  • Save lots0logs/40fccd15d6e3e7b5be4638dabe56d8b0 to your computer and use it in GitHub Desktop.
Save lots0logs/40fccd15d6e3e7b5be4638dabe56d8b0 to your computer and use it in GitHub Desktop.
Custom CSS Fields Configuration Example
<?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