SDCCS: Text Highlight

Documentation:

HTML:

<!-- Text Highlight --> <div id="text-highlight"> <?php the_field('text_highlight', 'option'); ?> </div>

CSS:

/* Text Highlight */ #text-highlight { float: left; width: 100%; text-align: center; padding: 100px 0 50px 0; background-color: $primary-color; h1, h2, h3, h4, h5, p { margin: 0; } }

PHP:

function acf_options_add_text_highlight() { if( function_exists('acf_add_local_field_group') ): acf_add_local_field(array ( 'key' => 'field_58a5eab2cfda2', 'parent' => 'theme_settings', 'label' => 'Text Highlight', 'name' => '', 'type' => 'tab', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'placement' => 'left', 'endpoint' => 0, )); acf_add_local_field(array ( 'key' => 'field_58a5eabdcfda3', 'parent' => 'theme_settings', 'label' => 'Text Highlight', 'name' => 'text_highlight', 'type' => 'wysiwyg', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'tabs' => 'all', 'toolbar' => 'full', 'media_upload' => 1, 'delay' => 0, )); endif; } add_action( 'acf/init', 'acf_options_add_text_highlight' );