Call for action

Hi @movin,
I wrote you for another problem: https://colorlibsupport.com/t/call-to-action/

Now I restyled the site and I would like to show the call for action row in every page, except the home page and another specific one.

How can I do?

I saw your functions.php but I cannot understat how to edit.

The site is: http://www.fuoriluogoasti.com/

Thanks

Hi @FuoriLuogo,

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

You can achieve this by editing the function sparkling_call_for_action as following added in the functions.php file of shared child theme where in the function call is_page(42) you have to change 42 with the page id on which you don not want to display Call for Action.



function sparkling_call_for_action() {
  if ( of_get_option( 'w2f_cfa_text' )!='' && !is_home() && !is_front_page() && !is_page(42) ){
    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>';
  }
}

Best Regards,
Movin