Put CFA Button on Posts and Pages

I love the CFA feature because it helps me get people to sign up to test out my product.

But I’d also like to be able to add the CFA on individual posts and pages. Is there a shortcode to do that or do I need to manually edit the PHP?

Thanks for your help!

Download Sparkling Child Theme from here and activate it. You can also use existing Child Theme if you have one as this one is a clean one without extra functionality.

Now add this to Child Theme functions.php and save changes.

if ( ! function_exists( 'sparkling_call_for_action' ) ) :
 * Call for action text and button displayed above content
function sparkling_call_for_action() {
  if ( of_get_option( 'w2f_cfa_text' )!=''){
    echo '<div class="cfa">';
      echo '<div class="container">';
        echo '<div class="col-sm-8">';
          echo '<span class="cfa-text">'. of_get_option( 'w2f_cfa_text' ).'</span>';
          echo '</div>';
          echo '<div class="col-sm-4">';
          echo '<a class="btn btn-lg cfa-button" href="'. of_get_option( 'w2f_cfa_link' ). '">'. of_get_option( 'w2f_cfa_button' ). '</a>';
          echo '</div>';
      echo '</div>';
    echo '</div>';

Worked perfectly. Thank you for your prompt reply!