SDCCS: Text Highlight with CTA

Documentation:

HTML:

<!-- Text Highlight with CTA --> <div id="text-highlight-cta"> <p><?php the_field('text_highlight_with_cta_text', 'option'); ?> <span><a href="<?php the_field('text_highlight_with_cta_button_link', 'option'); ?>"><button class="rd-btn"><?php the_field('text_highlight_with_cta_button_text', 'option'); ?></button></a></span></p> </div>

CSS:

/* Text Highlight with CTA */ #text-highlight-cta { text-align: center; float: left; width: 100%; padding: 70px 0; padding-bottom: 120px; margin: 50px 0; background-color: $primary-color; p { color: $primary-color-text; font-size: 24px; margin: 0; } button { padding: 15px 24px; font-size: 15px; background-color: $tertiary-color; color: $tertiary-color-text; border: none; } span { display: inline-block; padding-left: 30px; border-left: 2px solid white; margin: 20px; } }

PHP:

function acf_options_add_text_highlight_with_cta() { if( function_exists('acf_add_local_field_group') ): acf_add_local_field(array ( 'key' => 'field_58a5eab2cdda2', 'parent' => 'theme_settings', 'label' => 'Text Highlight with CTA', '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_5764c0129d3sc', 'label' => 'Text Highlight', 'parent' => 'theme_settings', 'name' => 'text_highlight_with_cta_text', 'type' => 'text', 'instructions' => '', 'required' => '', 'conditional_logic' => '', 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, )); acf_add_local_field(array ( 'key' => 'field_5764ss129d3sc', 'parent' => 'theme_settings', 'label' => 'Button Text', 'name' => 'text_highlight_with_cta_button_text', 'type' => 'text', 'instructions' => '', 'required' => '', 'conditional_logic' => '', 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, )); acf_add_local_field(array ( 'key' => 'field_5764c012sd3sc', 'parent' => 'theme_settings', 'label' => 'Button Link', 'name' => 'text_highlight_with_cta_button_link', 'type' => 'text', 'instructions' => '', 'required' => '', 'conditional_logic' => '', 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, )); endif; } add_action( 'acf/init', 'acf_options_add_text_highlight_with_cta' );