Call to Action Bar


I’m absolutely loving this theme for my site: and keep getting many compliments on it.

My question concerns the call to action bar.

Is there a way to make it so the call to action is there permanently below the header image on every page and blog post?

I would like to make it my signup bar for email list and think it be great to be on every page.

Thanks so much for your help.


Hi Arianna,

I hope you are well today and thank you for your question.

You can achieve this by adding the following code in the functions.php file of your child theme.

 * 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>';

Alternatively you can just use the attached child theme that contains the above code.

Best Regards,

Thanks so much, Movin!

Works perfectly! Thank you for helping me turn my idea into action :slight_smile:

Have a great day!

You are most welcome here :slight_smile: