Skip to content

Instantly share code, notes, and snippets.

@lots0logs
Created March 25, 2018 13:00
Show Gist options
  • Save lots0logs/63ac0099cfa738e7066ab0427a3e45b7 to your computer and use it in GitHub Desktop.
Save lots0logs/63ac0099cfa738e7066ab0427a3e45b7 to your computer and use it in GitHub Desktop.
Margin & Padding Field Configuration Examples
<?php
class SIMP_SimpleHeader extends ET_Builder_Module {
// Example 1: Include Margin & Padding Field using its default configuartion
public function get_advanced_fields_config() {
return array();
}
// Example 2: Include Margin & Padding Field using a custom configuartion
public function get_advanced_fields_config() {
return array(
'margin_padding' => array(
'css' => array(
'important' => 'all',
),
),
);
}
// Example 3: Do not include Margin & Padding Field
public function get_advanced_fields_config() {
return array(
'margin_padding' => false,
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment